/* Shared styles for the legal pages (/privacy/, /termini/, /en/privacy/, /en/terms/).
   The landing keeps its CSS inline because it is one generated page; these four are
   hand-written in both languages, so their styles live in one file instead of four
   copies. Tokens are the landing's, so the pages read as the same site. */

:root {
    --primary:        #DC2F47;
    --primary-dark:   #A82240;
    --primary-light:  #FCE4EA;
    --text-primary:   #1D1D1F;
    --text-secondary: #6E6E73;
    --bg-white:  #FFFFFF;
    --bg-gray:   #F5F5F7;
    --border:    #E5E5E7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(220,47,71,0.35); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); text-decoration-color: var(--primary-dark); }

/* ── nav ───────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 860px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand img { height: 34px; width: auto; }
.nav-back { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.nav-back:hover { color: var(--primary); }

/* ── document ──────────────────────────────────────────────────────── */
.doc { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
.doc-kicker {
    display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--primary);
    background: var(--primary-light); border-radius: 999px; padding: 5px 14px; margin-bottom: 18px;
}
.doc h1 {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 12px;
}
.doc-meta { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; }
.doc-lede { font-size: 1.1rem; color: var(--text-secondary); margin: 24px 0 0; }

.doc h2 {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
    margin: 56px 0 16px; padding-top: 8px; scroll-margin-top: 80px;
}
.doc h3 {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-size: 1.12rem; font-weight: 600; margin: 32px 0 10px; scroll-margin-top: 80px;
}
.doc p { margin: 0 0 16px; color: var(--text-secondary); }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-secondary); }
.doc li { margin-bottom: 8px; }
.doc li > strong { color: var(--text-primary); }

/* ── table of contents ─────────────────────────────────────────────── */
.toc {
    background: var(--bg-gray); border: 1px solid var(--border); border-radius: 14px;
    padding: 22px 26px; margin: 40px 0 8px;
}
.toc h2 {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-secondary); margin: 0 0 12px; font-family: 'Inter', sans-serif;
}
.toc ol { margin: 0; padding-left: 20px; font-size: 0.95rem; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--text-primary); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

/* ── callout: the Google Limited Use disclosure and other pull-outs ── */
.callout {
    border: 1px solid var(--border); border-left: 4px solid var(--primary);
    background: #FFF8F9; border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title {
    font-family: 'Quicksand', 'Inter', sans-serif; font-weight: 700;
    color: var(--text-primary); margin-bottom: 8px !important;
}
.callout-quote { font-style: italic; }

/* ── tables ────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-primary); background: var(--bg-gray); white-space: nowrap; }
td { color: var(--text-secondary); }
td code, .doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em; background: var(--bg-gray); border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 5px; color: var(--text-primary); white-space: nowrap;
}

/* ── contact block ─────────────────────────────────────────────────── */
.contact-card {
    background: var(--bg-gray); border: 1px solid var(--border); border-radius: 14px;
    padding: 22px 26px; margin: 24px 0;
}
.contact-card p { margin-bottom: 6px; }
.contact-card p:last-child { margin-bottom: 0; }

/* ── footer (matches the landing) ──────────────────────────────────── */
.footer {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    color: rgba(255,255,255,0.55);
    padding: 56px 0 32px;
    border-top: 1px solid #2a2a2a;
}
.footer-cols {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start;
}
.footer-col h4 { color: #fff; font-weight: 700; font-family: 'Quicksand', sans-serif; font-size: 1rem; margin: 0 0 8px; }
.footer-col .project-tag { font-size: 0.85rem; color: #6b7280; line-height: 1.55; }
.footer-col .project-tag strong { color: #9ca3af; }
.footer-col-info p { font-size: 0.85rem; color: #9ca3af; line-height: 1.7; margin: 0; }
.footer-col-info strong { color: #d1d5db; font-weight: 600; }
.footer-col-legal { text-align: right; }
.footer-col-legal a {
    font-size: 0.85rem; color: #9ca3af;
    text-decoration: underline; text-decoration-color: #374151;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    display: inline-block; margin-left: 16px;
}
.footer-col-legal a:first-child { margin-left: 0; }
.footer-col-legal a:hover { color: #d1d5db; text-decoration-color: #6b7280; }
.footer-col-legal a[aria-disabled="true"] { color: #4b5563; cursor: not-allowed; pointer-events: none; text-decoration-color: #2a2a2a; }
.footer-col-legal a[aria-current="page"] { color: #d1d5db; }
.footer-col-legal .footer-copy { margin-top: 24px; font-size: 0.75rem; color: #4b5563; }
.lang-switch { display: block; margin-top: 16px; font-size: 0.85rem; }
.lang-switch a { margin-left: 10px; }
.lang-switch a:first-child { margin-left: 0; }

@media (max-width: 900px) {
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .footer-col-legal { text-align: left; }
    .footer-col-legal a { margin: 0 16px 8px 0; }
    .footer-col-legal .footer-copy { text-align: left; }
}
@media (max-width: 600px) {
    .doc { padding: 40px 20px 64px; }
    .doc h2 { margin-top: 44px; }
    .nav-brand img { height: 28px; }
}
