/* Page layout for the support and privacy pages. Colours, type and the shared pieces (sky, board, tickets,
   buttons, chips) come from the Departures design system in ds/, copied from design/prototype/ds/woflinedepartures;
   this file only places them. */

html { -webkit-text-size-adjust: 100%; }
body { line-height: 26px; }
a { color: var(--signal-text); font-weight: 700; }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; font-family: var(--font-sans); font-weight: 800; font-stretch: 85%; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; letter-spacing: -0.4px; font-weight: 800; font-stretch: 85%; }
.site-brand:hover { color: var(--ink); }
.site-brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { font-weight: 700; }
.site-nav a[aria-current="page"] { background: var(--card); color: var(--ink); }

/* Hero: the sky with its cloud line */
.hero { padding-bottom: 150px; }
.hero--short { padding-bottom: 120px; }
.hero .dp-clouds { bottom: -6px; height: 150px; }
.hero--short .dp-clouds { height: 120px; }
.hero-grid { padding-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero--short .hero-copy { padding-top: 40px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: -1.5px; }
.hero-lede { margin: 0; font-size: 19px; line-height: 28px; color: var(--on-sky-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-actions .dp-btn--quiet, .hero-copy .dp-chip { background: var(--card); }
.hero-plane { top: 112px; right: 4%; width: 220px; height: auto; }
.puff-a { top: 140px; left: 6%; width: 150px; height: 74px; }
.puff-b { top: 92px; right: 38%; width: 96px; height: 48px; }
.hero--short .puff-a { top: 120px; left: auto; right: 10%; width: 140px; height: 70px; }
.hero--short .puff-b { top: 170px; right: 26%; width: 90px; height: 44px; }
@media (max-width: 700px) { .hero-plane { width: 140px; top: 96px; right: -20px; opacity: 0.8; } }

.hero-board { width: 100%; max-width: 460px; justify-self: center; box-shadow: var(--shadow-ticket); }
.hero-board .dp-flaps { justify-self: end; }
.hero-board__foot { margin: 0; padding: 10px 0 8px; border-top: 1px solid var(--board-cell); font: 700 12px/16px var(--font-mono); letter-spacing: 0.08em; color: var(--board-muted); }

/* Sections */
.section { padding-top: 48px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.section--last { padding-bottom: 72px; }
.section-head { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.section-head p { margin: 0; color: var(--ink-muted); }
.section h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
/* Four steps read as two rows of two, never three and an orphan. */
.cards--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards--pairs { grid-template-columns: minmax(0, 1fr); } }
.ticket-title { font-size: 22px; line-height: 26px; }
.card-text { margin: 0; color: var(--ink-muted); }
.card-title { font: 700 17px/22px var(--font-sans); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.dp-card.stack { padding: 20px; }
.card--go { background: var(--go-soft); box-shadow: none; }
.card--go .card-text { color: var(--ink); }

.notice { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: var(--hold-soft); box-shadow: none; }
.notice .dp-chip { background: var(--card); }
.notice > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.notice p { margin: 0; font-size: 15px; line-height: 22px; }

/* Common questions */
.section.faq { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.faq > .section-head { flex: 1 1 280px; }
.faq > .dp-list { flex: 2 1 520px; min-width: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 60px; font: 700 17px/22px var(--font-sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary svg { flex: none; transition: transform var(--duration-base); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details + details { border-top: 1px solid var(--line); }
.faq details p { margin: 0 0 18px; color: var(--ink-muted); }

/* Privacy: the data table as a list that stacks on phones */
.data-list { padding: 0; }
.data-row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 20px; }
.data-row + .data-row { border-top: 1px solid var(--line); }
.data-row > :first-child { flex: 3 1 300px; font-weight: 700; }
.data-row > :last-child { flex: 2 1 220px; color: var(--ink-muted); }
.data-row--head { background: var(--board); border-radius: 20px 20px 0 0; font: 700 12px/16px var(--font-mono); letter-spacing: 0.08em; }
.data-row--head > :first-child, .data-row--head > :last-child { color: var(--board-muted); }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.prose p, .prose ul { margin: 0; color: var(--ink-muted); }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 56px; }
.columns h2 { font-size: 26px; line-height: 30px; letter-spacing: -0.3px; }

/* Contact band and footer */
.contact-row { padding-top: 64px; padding-bottom: 48px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact-row > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.contact-row h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.6px; }
.contact-row p { margin: 0; color: var(--board-muted); }
.contact-row .dp-label { color: var(--flap); }
.site-footer { padding-top: 20px; padding-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; font: 700 12px/16px var(--font-mono); letter-spacing: 0.08em; color: var(--board-muted); border-top: 1px solid var(--board-cell); }
.site-footer a { color: inherit; }
