/* ==========================================================================
   Legal pages (privacy-policy, terms-conditions, cancellation-refunds — generated by scripts/build-legal.mjs).
   Loads after site.css; reuses .oz-crumbs, .oz-kicker, .oz-pill. Mobile first: the contents box is a closed <details> above the text;
   from 1024px it becomes a sticky list on the left.
   ========================================================================== */

.lg-page [hidden] { display: none !important; }

/* ---- Title ----------------------------------------------------------------- */
.lg-head { padding-block: 4px var(--s-2); }
.lg-head > * { max-width: 820px; }
.lg-head h1 { margin: var(--s-1) 0 12px; font-size: 2rem; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.lg-head__lead { max-width: 62ch; font-size: 1.125rem; line-height: 1.6; color: var(--oz-text-2); }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: var(--s-2); font-size: .9375rem; color: var(--oz-text-2); }
.lg-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-print { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--oz-line); border-radius: 999px; background: #fff; color: var(--c-text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: border-color .2s ease; }
.lg-print:hover { border-color: var(--oz-navy); }
.no-js .lg-print { display: none; } /* needs JavaScript */
.lg-draft { margin-top: var(--s-3); padding: 14px 18px; border: 1px solid var(--c-accent); border-radius: 12px; background: #FFF6DD; color: #4A3200; font-size: .9375rem; line-height: 1.5; }
.lg-tbc { padding: 1px 5px; border-radius: 4px; background: #FFE49A; color: #4A3200; font-style: normal; }
@media (min-width: 1024px) { .lg-head h1 { font-size: 2.75rem; } }

/* ---- Layout ---------------------------------------------------------------- */
.lg-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-block: var(--s-3) var(--s-8); }
@media (min-width: 1024px) {
  .lg-layout { grid-template-columns: 260px minmax(0, 760px); gap: var(--s-8); align-items: start; justify-content: start; }
}

/* ---- Contents --------------------------------------------------------------- */
.lg-toc details { border-radius: 14px; background: var(--oz-gray); }
.lg-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; font-weight: 700; list-style: none; cursor: pointer; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary .icon { flex: none; transition: transform .2s ease; }
.lg-toc details[open] summary .icon { transform: rotate(180deg); }
.lg-toc summary:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -3px; border-radius: 14px; }
.lg-toc ol { margin: 0; padding: 0 20px 14px 44px; }
.lg-toc li { padding-left: 4px; }
.lg-toc li::marker { font-size: .875rem; font-weight: 700; color: var(--oz-navy-2); }
.lg-toc a { display: flex; align-items: center; min-height: 44px; color: inherit; font-size: .9375rem; line-height: 1.35; text-decoration: none; }
.lg-toc a:hover { color: var(--oz-navy-2); text-decoration: underline; text-underline-offset: 3px; }
.lg-toc a[aria-current="true"] { color: var(--oz-navy); font-weight: 700; }
@media (min-width: 1024px) {
  .lg-toc { position: sticky; top: calc(var(--bar-h) + var(--s-3)); max-height: calc(100vh - var(--bar-h) - var(--s-6)); overflow-y: auto; }
  .lg-toc details { background: none; }
  .lg-toc summary { min-height: 0; padding: 0 0 10px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--oz-text-2); pointer-events: none; cursor: default; } /* always open */
  .lg-toc summary .icon { display: none; }
  .lg-toc ol { padding: 0 0 0 30px; } /* room for two-digit numbers: the scrolling box clips anything outside it */
  .lg-toc a[aria-current="true"]::before { content: ""; position: absolute; left: -2px; width: 3px; height: 22px; border-radius: 2px; background: var(--oz-orange); }
  .lg-toc li { position: relative; }
}

/* ---- Text -------------------------------------------------------------------- */
.lg-doc { min-width: 0; font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; } /* long email addresses must not widen a phone screen */
.lg-summary { margin-bottom: var(--s-5); padding: 20px 22px; border-radius: 16px; background: var(--c-primary-soft); }
.lg-summary h2 { margin-bottom: 12px; font-size: 1.125rem; }
.lg-summary ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lg-summary li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 1rem; line-height: 1.55; }
.lg-summary .icon { margin-top: 3px; color: var(--oz-navy); }
.lg-sec { margin-top: 2.4em; }
.lg-sec:first-of-type { margin-top: 0; }
.lg-sec h2 { margin-bottom: .6em; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.625rem); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.lg-num { color: var(--oz-orange); font-variant-numeric: tabular-nums; }
.lg-sec h3 { margin: 1.5em 0 .4em; font-size: 1.0625rem; line-height: 1.4; }
.lg-sec p, .lg-sec ul, .lg-sec ol, .lg-table { margin-top: .9em; }
.lg-sec h2 + p, .lg-sec h2 + ul, .lg-sec h2 + ol, .lg-sec h2 + .lg-table, .lg-sec h3 + p, .lg-sec h3 + ul { margin-top: 0; }
.lg-sec ul, .lg-sec ol { padding-left: 1.4em; } /* base.css only resets ul[role=list] */
.lg-sec ul { list-style: disc; }
.lg-sec ol { list-style: decimal; }
.lg-sec li + li { margin-top: .4em; }
.lg-sec li::marker { color: var(--oz-navy-2); }
.lg-sec a, .lg-summary a, .lg-draft a, .lg-more__help a { color: var(--oz-navy-2); text-decoration: underline; text-underline-offset: 3px; }
.lg-sec a:hover, .lg-summary a:hover, .lg-more__help a:hover { color: var(--oz-orange); }

.lg-table { overflow-x: auto; border: 1px solid var(--oz-line); border-radius: 12px; }
.lg-table:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.lg-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.lg-table th, .lg-table td { padding: 12px 16px; border-bottom: 1px solid var(--oz-line); text-align: left; vertical-align: top; }
.lg-table thead th { background: var(--oz-gray); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lg-table tbody th { font-weight: 600; }
.lg-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 639px) { /* a table this wide does not fit a phone: every row becomes a small card */
  .lg-table { overflow: visible; border: 0; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; min-width: 0; width: 100%; }
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table tbody tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--oz-line); border-radius: 12px; background: #fff; }
  .lg-table tbody th { padding: 12px 16px; border-bottom: 1px solid var(--oz-line); background: var(--oz-gray); }
  .lg-table td { padding: 10px 16px; border-bottom: 0; }
  .lg-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--oz-text-2); }
  .lg-table td + td { padding-top: 0; }
}

.lg-more { margin-top: var(--s-6); padding: 24px 22px; border-radius: 16px; background: var(--oz-gray); }
.lg-more h2 { margin-bottom: 14px; font-size: 1.25rem; }
.lg-more ul { display: grid; gap: 10px; margin: 0 0 var(--s-2); padding: 0; list-style: none; }
.lg-more li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 64px; padding: 12px 16px; border: 1px solid var(--oz-line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.lg-more li a:hover { border-color: var(--oz-navy); }
.lg-more li a b { grid-column: 1; }
.lg-more li a span { grid-column: 1; font-size: .875rem; line-height: 1.4; color: var(--oz-text-2); }
.lg-more li a .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--oz-orange); }
.lg-more__help { font-size: .9375rem; color: var(--oz-text-2); }
.lg-more__help a { display: inline-block; padding-block: 12px; } /* 44px tap target */

@media (prefers-reduced-motion: reduce) { .lg-toc summary .icon, .lg-print, .lg-more li a { transition: none; } }

/* ---- Print: just the text -------------------------------------------------- */
@media print {
  .masthead, .oz-foot, .wa-float, .lg-toc, .lg-print, .lg-more, .oz-crumbs, .drawer, .scrim { display: none !important; }
  .lg-layout { display: block; margin: 0; }
  .lg-doc, .lg-head { max-width: none; font-size: 11pt; }
  .lg-summary, .lg-draft, .lg-tbc { background: none; border: 1px solid #999; }
  .lg-sec { break-inside: avoid-page; }
  .lg-sec a { color: inherit; text-decoration: none; }
}
