/* AviatorWatch 2.0 inner pages: privacy, support (contact) and 404.
   Load after home.css. home.css gives the colours, the font, the nav,
   the badge and the footer with the windsock. This file adds the page
   header, the text column, the FAQ, the contact form and the 404 card. */

/* ───────── Page header: a photo band that fades into the night ───────── */
.page-head {
  position: relative;
  background-color: var(--night-2);
  background-size: cover;
  background-position: center 38%;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 34, 0.35) 0%, rgba(11, 16, 34, 0.7) 55%, var(--night) 100%);
}
.page-head-inner {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 16px clamp(28px, 4vw, 44px);
}
.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 6vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -0.01em;
}
.page-head .lede { margin: 0; max-width: 46ch; font-size: clamp(19px, 2vw, 22px); font-weight: 600; line-height: 1.3; color: var(--ink); }
.page-head .page-meta { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

/* ───────── Text column ───────── */
.page {
  max-width: 760px; margin: 0 auto;
  padding: 8px 16px clamp(48px, 7vw, 80px);
}
.doc-section { padding: 28px 0; border-top: 1px solid var(--rule); }
.doc-section:first-child { border-top: 0; }
.doc-section h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.1; }
.doc-section h3 { margin: 20px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.doc-section p, .doc-section li { color: var(--ink-2); }
.doc-section p { margin: 0 0 14px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul, .doc-section ol { margin: 0 0 14px; padding-left: 22px; }
.doc-section li { margin-bottom: 6px; }
.doc-section li::marker { color: var(--magenta); }
.doc-section strong { color: var(--ink); font-weight: 600; }
.doc-section a { color: var(--cyan); text-underline-offset: 2px; }
.doc-section a:hover { color: var(--ink); }
.doc-section code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; overflow-wrap: anywhere; }

/* A short note in the same orange as the home page fine print. */
.callout {
  margin: 0 0 14px; padding: 16px 20px; border-radius: 16px;
  border: 1px solid rgba(232, 116, 46, 0.45);
  background: linear-gradient(180deg, rgba(232, 116, 46, 0.10), rgba(232, 116, 46, 0.03));
}
.callout p { margin: 0; }

/* ───────── FAQ ───────── */
.faq { display: grid; gap: 10px; margin-top: 6px; }
.faq details {
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--night-2);
}
.faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--cyan); }
.faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 16px; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p, .faq .answer li { color: var(--ink-2); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child, .faq .answer ol:last-child { margin-bottom: 0; }
.faq .answer ol { margin: 0 0 10px; padding-left: 22px; }
.faq .answer li { margin-bottom: 4px; }
.faq .answer li::marker { color: var(--magenta); }
.faq .answer a { color: var(--cyan); }
.faq .answer strong { color: var(--ink); font-weight: 600; }
.faq .tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; vertical-align: 2px;
  border-radius: 999px; border: 1px solid rgba(255, 95, 210, 0.5);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--magenta);
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ───────── Contact form ───────── */
.contact-form {
  display: grid; gap: 16px;
  margin-top: 20px; padding: 24px;
  border: 1px solid var(--rule); border-radius: 20px;
  background: var(--night-2);
}
.contact-field { display: grid; gap: 6px; }
.contact-field > span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
  background: var(--night);
  color: var(--ink);
  font: inherit; font-size: 17px; line-height: 1.4;
}
.contact-field textarea { resize: vertical; min-height: 150px; }
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.25);
}
/* Honeypot: off screen for people, still in the form for bots. */
.contact-hp {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.contact-submit {
  justify-self: start;
  padding: 12px 26px;
  border: 0; border-radius: 999px;
  background: var(--cyan); color: var(--night);
  font: inherit; font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.contact-submit:hover { background: #8ad9ff; transform: translateY(-1px); }
.contact-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-submit:disabled { opacity: 0.55; cursor: default; transform: none; }
.contact-status { margin: 0; min-height: 1.5em; font-size: 16px; color: var(--ink-2); }
.contact-status.is-ok { color: var(--vfr); }
.contact-status.is-error { color: #ff8a7a; }
.contact-status a { color: inherit; }

/* ───────── 404 ───────── */
.notfound {
  min-height: calc(100vh - 260px);
  display: grid; place-items: center;
  padding: clamp(48px, 9vw, 96px) 16px;
  background-size: cover; background-position: center;
  position: relative;
}
.notfound::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 34, 0.55), rgba(11, 16, 34, 0.8) 70%, var(--night));
}
.notfound-card {
  position: relative; max-width: 520px; text-align: center;
  padding: 32px 28px 30px; border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: rgba(11, 16, 34, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.notfound-code { margin: 0; font-size: clamp(88px, 16vw, 136px); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; }
.notfound-title { margin: 12px 0 10px; font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.15; }
.notfound-body { margin: 0 0 24px; color: var(--ink-2); }
.notfound-home {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--cyan); color: var(--night); font-weight: 700; text-decoration: none;
}
.notfound-home:hover { background: #8ad9ff; }

@media (max-width: 560px) {
  .contact-form { padding: 18px 16px; }
  .contact-submit { justify-self: stretch; }
  .faq summary { font-size: 18px; padding-left: 16px; }
  .faq .answer { padding: 0 16px 16px; }
}
