/* ─────────────────────────────────────────────
   ASCON — shared styling for legal pages
   (privacy.html / terms.html / accessibility.html)
   Matches the main site: Assistant font, gold + black on white, RTL.
───────────────────────────────────────────── */
:root {
  --gold:        #BC8E51;
  --gold-soft:   #FAF4E8;
  --ink:         #0F0F0F;
  --body:        #2A2A2A;
  --muted:       #7A7265;
  --white:       #FFFFFF;
  --off-white:   #FAFAF7;
  --border:      rgba(15, 15, 15, 0.10);
  --font:        'Assistant', system-ui, sans-serif;
  --font-head:   'Frank Ruhl Libre', 'Assistant', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
  background: var(--off-white);
  direction: rtl;
}

/* Skip link */
.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Header bar */
.legal-header {
  background: var(--ink);
  padding: 14px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-header .logo img { height: 44px; width: auto; display: block; }
.legal-header .back {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.legal-header .back:hover { background: rgba(188,142,81,0.18); border-color: var(--gold); }

/* Main document */
main.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
main.legal h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
}
main.legal .updated {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}
main.legal h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-top: 10px;
  border-top: 2px solid var(--gold);
  display: inline-block;
}
main.legal h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 6px;
}
main.legal p { margin-bottom: 16px; }
main.legal ul, main.legal ol { margin: 0 22px 18px; }
main.legal li { margin-bottom: 8px; }
main.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
main.legal a:hover { color: var(--ink); }
main.legal strong { color: var(--ink); font-weight: 700; }

.lead {
  font-size: 19px;
  color: var(--ink);
  background: var(--gold-soft);
  border-right: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 24px 0;
}
.contact-box p { margin-bottom: 6px; }

/* Placeholder the business must fill before publishing */
.fill {
  background: #FFF3C4;
  color: #6b5300;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px dashed #d9b441;
  white-space: nowrap;
}

/* Footer */
.legal-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 30px 6%;
  text-align: center;
  font-size: 14px;
}
.legal-footer nav { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.legal-footer nav a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; }
.legal-footer nav a:hover { color: var(--gold); }
.legal-footer .biz { line-height: 1.7; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  main.legal { padding: 36px 18px 60px; }
  .legal-header { padding: 12px 18px; }
}
