/* ==========================================================================
   Legal / policy page layout (Privacy, Terms, Disclaimer, Cookies, Refund, DMCA).
   Slick, monochrome, editorial: a near-black hero (matches the site's black theme)
   over a clean single-column document. Restrained, ink/gray palette, hairline
   rules, minimal ornament. Everything scoped under .lapage so nothing leaks.

   Rendered by resources/views/partials/legal/legal-page.php. One template + this
   stylesheet standardize every legal page; a page only supplies meta + body.
   ========================================================================== */

.lapage {
    --ink: #0a0a0a;
    --line: #e7e7ea;
    --line-soft: #ededf0;
    --muted: #52525b;
    --muted-2: #8a8a93;
    --text: #3f3f46;
    --focus: #2563eb;
    --maxw: 1120px;
    display: block;
    width: 100%;
    color: var(--ink);
    background: #ffffff;
}
.lapage *,
.lapage *::before,
.lapage *::after { box-sizing: border-box; }

.lapage .lapage-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Visible keyboard focus (WCAG 2.4.7), scoped to this page's own controls. */
.lapage .lapage-toc a:focus-visible,
.lapage .lapage-prose a:focus-visible,
.lapage .lapage-related a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}
.lapage .lapage-hero a:focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- HERO ---- */
/* Near-black, monochrome. A single soft white glow up top; no colored bloom. */
.lapage .lapage-hero {
    width: 100%;
    background:
        radial-gradient(1100px 520px at 50% -14%, rgba(255, 255, 255, .07), transparent 62%),
        linear-gradient(180deg, #050506 0%, #111113 60%, #191a1d 100%);
    color: #fff;
    padding: 124px 20px 62px;
    position: relative;
    overflow: hidden;
}
.lapage .lapage-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(900px 420px at 50% 0%, #000 35%, transparent 80%);
    mask-image: radial-gradient(900px 420px at 50% 0%, #000 35%, transparent 80%);
    pointer-events: none;
}
.lapage .lapage-hero-inner {
    max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.lapage .lapage-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: #d4d4d8; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.lapage .lapage-h1 {
    font-size: clamp(2.05rem, 5vw, 3.05rem);
    font-weight: 800; letter-spacing: -0.032em; line-height: 1.06; margin: 0 0 16px; color: #fff;
}
.lapage .lapage-lead {
    font-size: clamp(1rem, 1.6vw, 1.13rem); line-height: 1.6; color: #b4b4bd;
    max-width: 600px; margin: 0 auto;
}
.lapage .lapage-updated {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: #8a8a93; margin: 24px 0 0;
}
.lapage .lapage-updated .lapage-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #d4d4d8;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); display: inline-block;
}

/* ------------------------------------------------------------- LAYOUT ---- */
/* Single, centered reading column. Borderless document, not a boxed card. */
.lapage .lapage-body { max-width: 780px; margin: 0 auto; padding: 44px 20px 72px; }

/* ---- Table of contents: quiet chip rail under the hero ---- */
.lapage .lapage-toc {
    max-width: 780px; margin: 0 auto; padding: 30px 20px 0;
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.lapage .lapage-toc a {
    font-size: 0.84rem; font-weight: 500; color: var(--muted); background: #fff;
    border: 1px solid var(--line); padding: 7px 13px; border-radius: 8px; text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lapage .lapage-toc a:hover { border-color: #b3b3b9; color: var(--ink); }
.lapage .lapage-toc a.active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---- Main content: transparent wrapper (no card) ---- */
.lapage .lapage-main { min-width: 0; }

/* ---- Sections + prose ---- */
.lapage .lapage-section { scroll-margin-top: 92px; }
.lapage .lapage-section + .lapage-section {
    margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line-soft);
}
.lapage .lapage-section > h2 {
    font-size: clamp(1.28rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em;
    color: var(--ink); line-height: 1.25; margin: 0 0 16px;
}
/* Lead-in: the opening section's first paragraph reads a touch larger, like a standfirst. */
.lapage .lapage-main > .lapage-section:first-of-type .lapage-prose > p:first-child {
    font-size: 1.12rem; line-height: 1.7; color: #3f3f46;
}
.lapage .lapage-prose h3 {
    font-size: 1.04rem; font-weight: 700; color: var(--ink); margin: 26px 0 10px;
}
.lapage .lapage-prose p {
    font-size: 1rem; line-height: 1.75; color: var(--text); margin: 0 0 15px;
}
.lapage .lapage-prose ul,
.lapage .lapage-prose ol { margin: 0 0 18px; padding-left: 22px; }
.lapage .lapage-prose li { font-size: 1rem; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.lapage .lapage-prose li::marker { color: #a1a1aa; }
.lapage .lapage-prose a {
    color: var(--ink); font-weight: 500; text-decoration: underline;
    text-decoration-color: #cfcfd4; text-underline-offset: 2px; transition: text-decoration-color .15s ease;
}
.lapage .lapage-prose a:hover { text-decoration-color: var(--ink); }
.lapage .lapage-prose strong { color: var(--ink); font-weight: 600; }
.lapage .lapage-prose > *:last-child { margin-bottom: 0; }

/* ---- Callouts: minimal, monochrome (thin ink rule, no colored fills) ---- */
.lapage .lapage-note {
    border: 1px solid var(--line);
    background: #fafafa; border-radius: 12px; padding: 18px 20px; margin: 0 0 18px;
}
.lapage .lapage-note > *:last-child { margin-bottom: 0; }
.lapage .lapage-note-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 8px;
}
.lapage .lapage-note-title i { color: var(--muted-2); font-size: 0.9rem; }
.lapage .lapage-note p { font-size: 0.97rem; line-height: 1.65; color: var(--text); margin: 0 0 10px; }
.lapage .lapage-note ul,
.lapage .lapage-note ol { margin: 0 0 10px; padding-left: 20px; }
.lapage .lapage-note li { font-size: 0.97rem; line-height: 1.6; color: var(--text); margin-bottom: 6px; }
.lapage .lapage-note li::marker { color: var(--muted-2); }
/* Links inside callouts / tiles follow the monochrome prose-link style (ink, not blue). */
.lapage .lapage-note a,
.lapage .lapage-tile a {
    color: var(--ink); font-weight: 500; text-decoration: underline;
    text-decoration-color: #cfcfd4; text-underline-offset: 2px; transition: text-decoration-color .15s ease;
}
.lapage .lapage-note a:hover,
.lapage .lapage-tile a:hover { text-decoration-color: var(--ink); }
/* Semantic variants intentionally read the same in this monochrome system (plain box, no accent). */

/* ---- Tiles: flat hairline cards, monochrome ---- */
.lapage .lapage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0; }
.lapage .lapage-tile {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px;
    transition: border-color .15s ease;
}
.lapage .lapage-tile:hover { border-color: #b3b3b9; }
.lapage .lapage-tile h3 {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.98rem; font-weight: 700; color: var(--ink); margin: 0 0 12px;
}
.lapage .lapage-tile h3 i { color: var(--muted-2); font-size: 0.92rem; }
.lapage .lapage-tile ul { margin: 0; padding-left: 18px; }
.lapage .lapage-tile li { font-size: 0.93rem; line-height: 1.6; color: var(--text); margin-bottom: 6px; }

/* ---- Rights: flat hairline cards ---- */
.lapage .lapage-rights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0; }
.lapage .lapage-right-card {
    border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff;
    transition: border-color .15s ease;
}
.lapage .lapage-right-card:hover { border-color: #b3b3b9; }
.lapage .lapage-right-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.lapage .lapage-right-card p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---- Contact: black card that bookends the hero ---- */
.lapage .lapage-contact {
    position: relative; overflow: hidden;
    background:
        radial-gradient(560px 240px at 100% 0%, rgba(255, 255, 255, .06), transparent 60%),
        linear-gradient(180deg, #0a0a0a, #161618);
    border: 1px solid #262629; border-radius: 14px; padding: 28px 30px; color: #fff;
}
.lapage .lapage-contact .lapage-prose p { color: #d4d4d8; }
.lapage .lapage-contact .lapage-prose a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.lapage .lapage-contact-grid { display: flex; flex-wrap: wrap; gap: 16px 44px; margin-top: 18px; }
.lapage .lapage-contact-grid h3 {
    font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #8a8a93; margin: 0 0 6px;
}
.lapage .lapage-contact-grid p { margin: 0; font-size: 1.02rem; color: #ededed; }
.lapage .lapage-contact-grid a {
    color: #fff; font-weight: 600; text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 2px;
}
.lapage .lapage-contact-grid a:hover { text-decoration-color: #fff; }

/* ---- Data table ---- */
.lapage .lapage-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 6px 0; }
.lapage .lapage-table th {
    text-align: left; font-weight: 700; color: var(--ink);
    padding: 11px 12px; border-bottom: 2px solid var(--line); background: #fafafa;
}
.lapage .lapage-table td {
    padding: 11px 12px; color: var(--text); border-bottom: 1px solid var(--line-soft); vertical-align: top;
}

/* ---- Related policies strip ---- */
.lapage .lapage-related { max-width: 780px; margin: 0 auto; padding: 0 20px 72px; }
.lapage .lapage-related-inner {
    border-top: 1px solid var(--line); padding-top: 28px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}
.lapage .lapage-related-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted-2); margin-right: 4px;
}
.lapage .lapage-related a {
    font-size: 0.84rem; font-weight: 500; color: var(--muted); background: #fff;
    border: 1px solid var(--line); padding: 7px 13px; border-radius: 8px; text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
.lapage .lapage-related a:hover { border-color: #b3b3b9; color: var(--ink); }

/* -------------------------------------------------------- RESPONSIVE ---- */
@media (max-width: 768px) {
    .lapage .lapage-hero { padding: 104px 18px 46px; }
    .lapage .lapage-toc { padding: 24px 18px 0; }
    .lapage .lapage-body { padding: 34px 18px 60px; }
    .lapage .lapage-grid,
    .lapage .lapage-rights { grid-template-columns: 1fr; }
    .lapage .lapage-contact { padding: 24px 22px; }
    .lapage .lapage-contact-grid { gap: 14px 26px; }
}

@media (max-width: 480px) {
    .lapage .lapage-note,
    .lapage .lapage-tile,
    .lapage .lapage-right-card { padding: 15px 16px; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
