/* Intercity policy pages (terms, privacy, refund, delete-account).
   Loaded after travla-web-v2.css + travla-landing.css, which give the tokens,
   the site header, the footer and the buttons; this file only adds the page
   hero and the long-form text. Same look as the home page. */

body { background: var(--bg); }

/* Header: always solid on these pages (no photo behind it). */
.legal-page .site-header { background: var(--primary-900); box-shadow: 0 6px 24px rgba(0,25,60,.28); }
.nav-links a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold-500); padding-bottom: 6px; }

/* Navy kente weave, as in the footer and the Intercity app. */
.kente-navy {
  background-color: var(--primary-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.07'%3E%3Crect x='0' y='2' width='16' height='3'/%3E%3Crect x='0' y='7' width='16' height='1.5'/%3E%3Crect x='0' y='11' width='16' height='3'/%3E%3Crect x='18' y='0' width='3' height='16'/%3E%3Crect x='23' y='0' width='1.5' height='16'/%3E%3Crect x='27' y='0' width='3' height='16'/%3E%3Crect x='2' y='16' width='3' height='16'/%3E%3Crect x='7' y='16' width='1.5' height='16'/%3E%3Crect x='11' y='16' width='3' height='16'/%3E%3Crect x='16' y='18' width='16' height='3'/%3E%3Crect x='16' y='23' width='16' height='1.5'/%3E%3Crect x='16' y='27' width='16' height='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 32px 32px;
}

/* ── page hero ── */
.legal-hero { color: #fff; padding: 148px 0 64px; }
.legal-hero .hero-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; font: 600 13px/1 var(--font-body); }
.legal-hero .hero-pill .ico { color: var(--gold-500); }
.legal-hero h1 { margin: 20px 0 14px; font: 800 clamp(34px, 5vw, 52px)/1.08 var(--font-display); letter-spacing: -.02em; color: #fff; max-width: 820px; }
.legal-hero p { margin: 0; max-width: 620px; color: #CBE4F3; font: 500 18px/1.55 var(--font-body); }
.legal-hero .updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #8FB9D3; font: 600 13px/1 var(--font-body); letter-spacing: .02em; }
.legal-hero .updated .ico { color: #8FB9D3; }

/* ── body: contents list on the left (desktop), text on the right ── */
.legal-main { padding: 56px 0 96px; }
/* Left edge lines up with the logo and the hero heading. */
.legal-main .page-wrap { margin: 0; }
.page-wrap:has(> .toc) { display: grid; grid-template-columns: 260px minmax(0, 880px); column-gap: 48px; align-items: start; }
.page-wrap:has(> .toc) > * { grid-column: 2; }
.page-wrap:has(> .toc) > .toc { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 108px; }
.page-wrap:not(:has(> .toc)) { max-width: 820px; }

.toc { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--hairline); padding: 20px 22px; margin: 0; }
.toc h2 { margin: 0 0 12px; font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-700); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink-2); font: 500 14px/1.35 var(--font-body); }
.toc a::before { content: counter(toc); min-width: 18px; color: var(--ink-4); font: 600 13px/1.4 var(--font-body); }
.toc a:hover { background: var(--primary-50); color: var(--primary-700); }

.section { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--hairline); padding: 28px 32px; margin: 0 0 16px; scroll-margin-top: 108px; color: var(--ink-2); font: 400 16px/1.7 var(--font-body); }
.section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 700 21px/1.3 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.section h2 .num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary-700); font: 700 14px/1 var(--font-display); }
.section p { margin: 0 0 14px; }
.section p:last-child, .section ul:last-child, .section ol:last-child { margin-bottom: 0; }
.section ul, .section ol { margin: 0 0 14px; padding-left: 22px; }
.section li { margin-bottom: 6px; }
.section li::marker { color: var(--primary-600); }
.section strong { color: var(--ink); font-weight: 600; }
.section a, .highlight-box a, .warning-box a, .success-box a { color: var(--primary-600); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section a:hover { color: var(--primary-700); }

/* Note boxes */
.highlight-box, .warning-box, .success-box { margin: 16px 0; padding: 14px 18px; border-radius: 12px; font: 500 15px/1.6 var(--font-body); color: var(--ink); }
.highlight-box { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary-600); }
.warning-box { background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold-500); }
.success-box { background: var(--success-50); box-shadow: inset 3px 0 0 var(--success-500); }

/* Refund: at-a-glance numbers */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.summary-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--hairline); padding: 20px; }
.summary-card .value { font: 800 34px/1 var(--font-display); color: var(--primary-900); margin-bottom: 8px; }
.summary-card .label { font: 500 14px/1.45 var(--font-body); color: var(--ink-3); }

/* Refund: tables */
.section table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); font: 400 15px/1.5 var(--font-body); }
.section th { background: var(--primary-900); color: #fff; text-align: left; padding: 12px 16px; font: 700 12px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.section td { padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.section tbody tr:nth-child(even) td { background: #FAF9F6; }

/* Privacy: third-party services */
.third-party-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.third-party-card { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.third-party-card strong { display: block; margin-bottom: 4px; font: 700 15px/1.3 var(--font-body); color: var(--ink); }
.third-party-card span { display: block; font:400 14px/1.5 var(--font-body); color: var(--ink-3); }

@media (max-width: 1023px) {
  .page-wrap:has(> .toc) { display: block; }
  .toc { position: static; margin-bottom: 16px; }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 899px) {
  .legal-hero { padding: 124px 0 44px; }
  .legal-hero p { font-size: 16px; }
  .legal-main { padding: 32px 0 64px; }
}
@media (max-width: 600px) {
  .toc ol { columns: 1; }
  .section { padding: 22px 20px; font-size: 15px; }
  .section h2 { font-size: 18px; }
  .section table { display: block; overflow-x: auto; font-size: 14px; }
  .section th, .section td { padding: 10px 12px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { padding: 16px; }
  .summary-card .value { font-size: 28px; }
}
