/* Reading layout for the public policies. Shared navigation and footer use landing.css. */
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 4px; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header .login-link { color: var(--ink); }
.site-nav-links a:hover, .site-footer a:hover { color: var(--lime); }
.site-header .login-link:hover { color: var(--ink); }
.site-header button { color: inherit; font: inherit; cursor: pointer; }
.site-footer h2, .site-footer p { margin: 0; }
.site-footer .footer-links h2, .site-footer .footer-app h2 { margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links a, .site-footer .footer-brand > a:not(.footer-wordmark) { color: #dbe5ff; }
.site-footer .footer-bottom a { color: var(--lime); }
.site-footer .footer-links a:hover, .site-footer .footer-brand a:hover { color: var(--lime); }
.legal-site-footer .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.legal-site-footer .footer-brand p { margin: .55rem 0; }
.legal-site-footer .footer-brand > a:not(.footer-wordmark) { font-size: .85rem; overflow-wrap: anywhere; }

.skip-link { position: fixed; left: 1rem; top: -100px; padding: .75rem; background: #fff; z-index: 60; }
.skip-link:focus { top: .5rem; }
.legal-hero {
    margin-inline: var(--page-gutter);
    padding: clamp(2.8rem, 7vw, 5.5rem) 1.25rem;
    border-radius: 0 0 26px 26px;
    background: radial-gradient(ellipse at 90% 0%, #b4cbff, transparent 58%),
                radial-gradient(ellipse at 0% 72%, #eee0ff, transparent 55%), #f1f6ff;
    text-align: center;
}
.legal-hero p { margin: .75rem auto 0; max-width: 42rem; line-height: 1.65; color: var(--muted); }
.legal-hero p:first-child {
    display: inline-block;
    margin-top: 0;
    padding: .35rem .7rem;
    border-radius: 6px;
    background: var(--lime);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
}
.legal-hero h1 { margin: .85rem 0 0; font-size: clamp(2rem, 5.5vw, 4.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.05em; }
.legal-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: 1.1rem var(--page-gutter); }
.legal-tabs a { color: var(--brand-deep); padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: .82rem; }
.legal-tabs a:hover { background: #edf4ff; }
.legal-tabs a[aria-current] { color: var(--ink); background: var(--lime); border-color: #9bc700; font-weight: 600; }
.legal-layout {
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: 1.5rem var(--page-gutter) clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.legal-contents {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100dvh - 7rem);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem;
    background: #f3f7ff;
    box-shadow: var(--card-shadow);
}
.legal-contents summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: .92rem; }
.legal-contents ol { list-style: none; padding: 0; margin: .85rem 0 0; }
.legal-contents li + li { margin-top: .65rem; }
.legal-contents a { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; text-decoration: none; }
.legal-contents a:hover { color: var(--brand-deep); text-decoration: underline; }
.legal-content { min-width: 0; padding: clamp(1.15rem, 3.5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); font-size: .95rem; line-height: 1.8; overflow-wrap: anywhere; }
.legal-content > p:first-child { color: var(--brand-deep); font-size: .82rem; }
.legal-content p { margin: 0 0 1.15rem; }
.legal-content h2 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 650; line-height: 1.4; margin: 1.45rem 0 .8rem; }
.legal-content section { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.legal-content ul { padding-left: 1.4rem; margin: .75rem 0 1.3rem; }
.legal-content li { margin-bottom: .55rem; }
.back-top { display: inline-block; margin-top: 1.25rem; font-size: .85rem; }
@media (max-width: 850px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-contents { position: static; max-height: none; }
    .legal-contents ol { columns: 2; column-gap: 1.25rem; }
    .legal-contents li { break-inside: avoid; }
    .legal-site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-site-footer .footer-app { grid-column: auto; }
    .legal-site-footer .footer-stores { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .legal-tabs { justify-content: flex-start; }
    .legal-contents ol { columns: 1; }
    .legal-site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .site-header, .site-footer, .legal-tabs, .legal-contents, .back-top, .skip-link { display: none; }
    .legal-layout { display: block; padding: 0; }
    .legal-hero { padding: 1rem 0; background: none; }
    .legal-hero::before { display: none; }
    .legal-content { padding: 0; border: 0; box-shadow: none; font-size: 11pt; line-height: 1.5; }
    .legal-content h2 { break-after: avoid; }
    a { color: inherit; }
}
