/* ══════════════════════════════════════════════════════════════
   TapPark shared stylesheet
   Used by the FAQ, Privacy, Cookie, Contact and Thank You pages.
   Mirrors the design tokens and components defined inline in
   index.html so every page shares one visual language.
   ══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.section-label.green {
  color: var(--green-600);
  background: var(--green-50);
  border-color: var(--green-100);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.3), 0 0 0 0 rgba(37,99,235,0);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.btn-secondary {
  background: #fff;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow .2s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; }
.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all .2s;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--slate-100);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ─── Page header ────────────────────────────────────────────── */
.page-header {
  padding: 128px 0 56px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--slate-100);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 70% 30%, rgba(37,99,235,.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 85% 60%, rgba(34,197,94,.04) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--slate-900);
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.page-intro {
  font-size: 18px;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 620px;
}
.page-meta {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
}

/* ─── Legal / long-form content ──────────────────────────────── */
.legal {
  padding: 56px 0 88px;
  background: #fff;
}
.legal-body {
  font-size: 15.5px;
  color: var(--slate-600);
  line-height: 1.75;
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -.01em;
  margin: 44px 0 14px;
  scroll-margin-top: 88px;
}
.legal-body h2:first-of-type { margin-top: 8px; }
.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-800);
  margin: 28px 0 10px;
}
.legal-body p { margin-bottom: 16px; }
.legal-body ul, .legal-body ol {
  margin: 0 0 16px 22px;
  padding: 0;
}
.legal-body li { margin-bottom: 8px; }
.legal-body a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--blue-100);
  transition: border-color .15s, color .15s;
}
.legal-body a:hover { color: var(--blue-700); border-color: var(--blue-600); }
.legal-body strong { color: var(--slate-800); font-weight: 600; }

/* Table of contents card */
.toc {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 40px;
}
.toc h2 {
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--slate-500);
  margin: 0 0 14px !important;
}
.toc ol {
  margin: 0 0 0 18px;
  columns: 2;
  column-gap: 32px;
  font-size: 14px;
}
.toc li { margin-bottom: 8px; }

/* Definition / info panels and tables */
.info-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 0 0 20px;
}
.info-card p:last-child { margin-bottom: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.data-table thead th {
  background: var(--slate-50);
  font-weight: 600;
  color: var(--slate-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td { color: var(--slate-600); }

/* ─── FAQ accordion ──────────────────────────────────────────── */
.faq-group { margin-bottom: 44px; }
.faq-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-700); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  transition: transform .2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--slate-400);
  border-radius: 2px;
  top: 50%; left: 50%;
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--blue-600); }
.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.7;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 12px 20px; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--blue-100);
}
.faq-answer a:hover { color: var(--blue-700); }

/* ─── Contact page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 7px;
}
.field label .req { color: #ef4444; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 22px;
}
.form-consent input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.form-consent a { color: var(--blue-600); text-decoration: none; font-weight: 500; }
.hidden-field { position: absolute; left: -9999px; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.contact-card p, .contact-card address {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.7;
  font-style: normal;
}
.contact-card a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--slate-400);
  margin-top: 14px;
  margin-bottom: 2px;
}
.contact-card .label:first-of-type { margin-top: 0; }

/* ─── Thank you ──────────────────────────────────────────────── */
.thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.thanks-inner { max-width: 480px; }
.thanks-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.thanks h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.thanks p {
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--slate-900);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 300px;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  transition: color .15s;
}
.footer-email:hover { color: #fff; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  font-size: 13px;
  color: rgba(255,255,255,.3);
  line-height: 1.7;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ─── Booking embed ──────────────────────────────────────────── */
.booking-embed {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15,23,42,.06);
  padding: 8px;
  overflow: hidden;
}
.booking-embed iframe { display: block; border-radius: 10px; }
.booking-fallback {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--slate-500);
}
.booking-fallback a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}
.booking-fallback a:hover { text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .toc ol { columns: 1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
