/* ==========================================================================
   BOKA Landing — sub-page styles (legal / document / form pages)
   Loaded in addition to styles.css by privacy-policy.html and
   request-delete-account.html. Reuses the tokens declared in styles.css
   (navy/green/gold palette, radii, shadows, Be Vietnam Pro).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page shell
   The navbar is `position: fixed` and transparent until it affixes over the
   landing hero. Sub-pages have no dark hero behind it, so the solid style is
   forced on from the first paint and the content is offset by its height.
   -------------------------------------------------------------------------- */
.site-header.solid {
  background: rgba(20, 34, 56, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* --------------------------------------------------------------------------
   Page header band — navy so the white navbar text stays legible above it
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #ffffff;
  padding: calc(var(--nav-h) + 64px) 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Faint court motif, echoing the landing hero.
   .deco/.court-deco in styles.css already handle placement and stroke colour —
   only the opacity is lifted, since there is no photo behind it here. */
.page-hero .court-deco {
  opacity: 0.12;
}

.page-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-lead {
  margin-top: 14px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.page-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-meta span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Breadcrumb back to the landing page */
.page-back {
  /* fit-content keeps the hit area tight while still breaking the line,
     so the eyebrow below starts on its own row */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-back:hover {
  color: #ffffff;
}

.page-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --------------------------------------------------------------------------
   Document layout — sticky table of contents beside the prose on desktop
   -------------------------------------------------------------------------- */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 64px 0 88px;
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 2px solid var(--line);
  padding-left: 18px;
}

.doc-toc h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 12px;
}

.doc-toc a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.doc-toc a:hover {
  color: var(--green-dark);
}

/* --------------------------------------------------------------------------
   Document prose
   -------------------------------------------------------------------------- */
.doc-body {
  max-width: 760px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.doc-body h2 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body h3 {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.doc-body p {
  margin-bottom: 16px;
}

.doc-body ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

.doc-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}

/* Green tick bullet, matching the landing page's benefit lists */
.doc-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.doc-body a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 197, 94, 0.35);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.doc-body a:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.doc-body strong {
  color: var(--ink);
  font-weight: 700;
}

.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0 24px;
}

/* --------------------------------------------------------------------------
   Form page — request account deletion
   -------------------------------------------------------------------------- */
.form-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 88px;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.form-card h2 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-card-intro {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 26px;
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.field .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* Native arrow is hidden so the control matches the text inputs */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a524e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #f0a5a5;
}

.field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--subtle);
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green-dark);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-note {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.55;
}

/* Status line under the submit button — filled in by the page script */
.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #dc2626;
}

.form-status.is-ok {
  color: var(--green-dark);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .doc-layout,
  .form-layout {
    padding: 44px 0 64px;
  }

  /* The sticky rail becomes a plain block once it is full width */
  .doc-toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    columns: 2;
    column-gap: 24px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: calc(var(--nav-h) + 40px) 0 40px;
  }

  .form-card {
    padding: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .doc-toc {
    columns: 1;
  }

  .form-actions .btn {
    width: 100%;
  }
}
