/* Lapa legal pages in the style of the product landing (cloud-claw-bot web/landing/index.html):
   warm cream palette, Geist, graphite ink. Overrides shared/style.css through the static overlay.
   The logos are the landing's own files (/assets/…), these pages are served next to it. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

:root {
    --bg: #FFFBF6; --surface: #fff; --cream: #FDF0DD; --peach: #F5D8BB;
    --warm: linear-gradient(160deg, #FDF0DD 0%, #F5D8BB 100%);
    --caramel: #E9BC8E; --caramel-ink: #7A5530;
    --ink: #202020; --ink-2: #6E675D; --line: #EFE6DA;
    --shadow: 0 1px 2px rgba(35,33,28,.05), 0 10px 28px rgba(35,33,28,.08);
    --f: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 760px; --gut: 20px;
    color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f);
    font-size: 16px; line-height: 1.6; letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
::selection { background: var(--peach); }

/* ── top bar: the landing's header ── */
.doc-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,251,246,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.doc-header-top {
    width: min(1120px, 100% - 2 * var(--gut)); margin: 0 auto; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}
.doc-header h1 { display: none; }   /* the document starts with its own title */

/* «← Lapa» becomes the brand: paw mark + word logo */
.doc-header-top > a {
    display: flex; align-items: center; gap: 10px; font-size: 0; color: transparent; text-decoration: none;
}
.doc-header-top > a::before {
    content: ""; width: 36px; height: 36px; border-radius: 11px;
    background: url("/assets/logo-paw.svg") center / 21px no-repeat, var(--warm);
}
.doc-header-top > a::after {
    content: ""; width: 59px; height: 19px;
    background: url("/assets/logo-word.svg") left center / contain no-repeat;
}

.lang-switch {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
    font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
    box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .3s;
}
.lang-switch:hover { box-shadow: inset 0 0 0 1.5px var(--caramel); }

/* ── document ── */
.doc-content { width: min(var(--wrap), 100% - 2 * var(--gut)); margin: 0 auto; padding: 36px 0 72px; }
@media (min-width: 900px) { .doc-content { padding: 64px 0 96px; } }

.doc-content h1, .doc-content h2, .doc-content h3 { margin: 0; font-weight: 700; text-wrap: balance; }
.doc-content h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -.05em; margin-bottom: 20px; }
.doc-content h2 {
    font-size: clamp(22px, 3.2vw, 28px); line-height: 1.15; letter-spacing: -.04em;
    margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 84px;
}
.doc-content h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.03em; margin: 28px 0 10px; }

.doc-content p { margin: 0 0 14px; color: #36342F; }
/* the two lines under the title: publication and effective dates */
.doc-content h1 + p, .doc-content h1 + p + p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 6px; }
.doc-content strong { color: var(--ink); font-weight: 650; }

.doc-content ul, .doc-content ol { margin: 0 0 14px; padding-left: 22px; color: #36342F; }
.doc-content li { margin-bottom: 8px; }
.doc-content li::marker { color: var(--caramel); }

.doc-content a {
    color: var(--caramel-ink); font-weight: 550; text-decoration: underline;
    text-decoration-color: var(--caramel); text-underline-offset: 3px; overflow-wrap: anywhere;
}
.doc-content a:hover { color: var(--ink); }

.doc-content table {
    display: block; overflow-x: auto; width: 100%; border-collapse: separate; border-spacing: 0;
    margin: 6px 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow); font-size: 15px; line-height: 1.45;
}
.doc-content tbody, .doc-content thead { width: 100%; }
.doc-content th, .doc-content td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-content th { background: var(--cream); color: var(--caramel-ink); font-size: 13px; font-weight: 650; letter-spacing: 0; }
.doc-content tr:last-child td { border-bottom: 0; }
.doc-content td:first-child { font-weight: 550; color: var(--ink); min-width: 220px; }
.doc-content td { color: #36342F; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-2); font-size: 13.5px; }
footer .container { width: min(1120px, 100% - 2 * var(--gut)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media print {
    .doc-header, footer { display: none; }
    body { background: #fff; }
    .doc-content table { box-shadow: none; }
}
