/* SafeDubaiDriver — shared styles for the Privacy Policy and Terms pages */

:root {
  --ink: #0A0E15; --ink-2: #0E131D; --surface: #141A26; --surface-2: #1A2130;
  --line: rgba(236, 233, 225, 0.10); --line-strong: rgba(236, 233, 225, 0.18);
  --text: #ECE9E1; --muted: #868C9B; --brass: #C7A053; --brass-bright: #E4BE72;
  --glow: #F0C67A; --wa: #25D366;
  --shadow: 0 30px 80px -30px rgba(0,0,0,0.75);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}
:root[data-theme="light"] {
  --ink: #F3F1EB; --ink-2: #EDEAE1; --surface: #FFFFFF; --surface-2: #F7F5EF;
  --line: rgba(20, 26, 38, 0.10); --line-strong: rgba(20, 26, 38, 0.16);
  --text: #171B24; --muted: #5C6270; --brass: #9A7526; --brass-bright: #B98F35;
  --glow: #C79A45; --shadow: 0 30px 70px -34px rgba(30, 24, 10, 0.35);
}
@media (prefers-color-scheme: light) {
  :root {
    --ink: #F3F1EB; --ink-2: #EDEAE1; --surface: #FFFFFF; --surface-2: #F7F5EF;
    --line: rgba(20, 26, 38, 0.10); --line-strong: rgba(20, 26, 38, 0.16);
    --text: #171B24; --muted: #5C6270; --brass: #9A7526; --brass-bright: #B98F35;
    --glow: #C79A45; --shadow: 0 30px 70px -34px rgba(30, 24, 10, 0.35);
  }
}
:root[data-theme="dark"] {
  --ink: #0A0E15; --ink-2: #0E131D; --surface: #141A26; --surface-2: #1A2130;
  --line: rgba(236, 233, 225, 0.10); --line-strong: rgba(236, 233, 225, 0.18);
  --text: #ECE9E1; --muted: #868C9B; --brass: #C7A053; --brass-bright: #E4BE72;
  --glow: #F0C67A; --shadow: 0 30px 80px -30px rgba(0,0,0,0.75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text); font-family: var(--font);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* Nav (matches the landing page) */
header.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.015em; font-size: 17px; }
.brand .mark { width: 38px; height: 38px; flex: none; display: block; filter: drop-shadow(0 6px 14px rgba(199,160,83,0.38)); transition: transform .45s var(--ease); }
.brand:hover .mark { transform: translateY(-2px) rotate(-4deg); }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .mark .shield { fill: url(#sdBrass); }
.brand .mark .road { stroke: #16110A; stroke-width: 2.1; stroke-linecap: round; }
.brand em { font-style: normal; color: var(--brass); }
.brand small { display: block; font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: color .25s, border-color .25s, transform .25s; }
.theme-toggle:hover { color: var(--brass); border-color: var(--brass); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; padding: 15px 28px; border-radius: 100px; cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, color .3s; white-space: nowrap; font-family: inherit; }
.btn-primary { background: linear-gradient(180deg, var(--brass-bright), var(--brass)); color: #14100A; box-shadow: 0 10px 30px -10px rgba(199,160,83,0.55); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* Document header */
.doc-head { position: relative; overflow: hidden; padding: 70px 0 46px; border-bottom: 1px solid var(--line); }
.doc-head::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; top: -430px; right: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 20%, transparent), transparent 62%); pointer-events: none; }
.doc-head .inner { position: relative; z-index: 2; }
.eyebrow { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); opacity: 0.7; }
.doc-head h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; }
.doc-head p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 62ch; margin: 20px 0 0; }
.updated { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 13px; color: var(--muted); border: 1px solid var(--line-strong); padding: 8px 16px; border-radius: 100px; background: var(--surface); }
.updated svg { width: 15px; height: 15px; color: var(--brass); }

/* Document body: sticky contents rail + prose column */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 56px 0 90px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h2 { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; counter-reset: toc; }
.toc a { display: block; font-size: 13.5px; color: var(--muted); padding: 7px 12px; border-radius: 9px; border-left: 2px solid transparent; transition: color .25s, background .25s, border-color .25s; counter-increment: toc; }
.toc a::before { content: counter(toc) ". "; color: var(--brass); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.active { color: var(--text); background: var(--surface); border-left-color: var(--brass); }

.prose { max-width: 68ch; }
.prose section { padding-bottom: 40px; scroll-margin-top: 100px; }
.prose section + section { border-top: 1px solid var(--line); padding-top: 40px; }
.prose h2 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { font-size: 13px; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; flex: none; letter-spacing: 0.06em; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; color: var(--text); }
.prose p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a[href^="mailto"], .prose a[href^="tel"], .prose a.link { color: var(--brass); border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }
.prose a[href^="mailto"]:hover, .prose a[href^="tel"]:hover, .prose a.link:hover { color: var(--brass-bright); }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 11px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); opacity: .8; }
.prose ul li strong { color: var(--text); }

.callout { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-left: 3px solid var(--brass); border-radius: 14px; padding: 20px 22px; margin: 0 0 20px; }
.callout p { margin: 0; font-size: 14.5px; color: var(--muted); }
.callout p strong { color: var(--text); }

.contact-card { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.contact-card .row { display: flex; align-items: center; gap: 13px; font-size: 15px; margin-bottom: 14px; }
.contact-card .row:last-child { margin-bottom: 0; }
.contact-card .row svg { width: 18px; height: 18px; color: var(--brass); flex: none; }

/* Footer */
footer.ft { border-top: 1px solid var(--line); padding: 60px 0 34px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.ft-grid h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; font-weight: 700; }
.ft-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ft-grid a { color: var(--muted); font-size: 14px; transition: color .25s; }
.ft-grid a:hover { color: var(--brass); }
.ft .brand { margin-bottom: 18px; }
.ft .desc { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 34ch; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.ft-bottom p { color: var(--muted); font-size: 13px; margin: 0; }
.ft-bottom .legal { display: flex; gap: 22px; }
.ft-bottom .legal a[aria-current="page"] { color: var(--brass); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.wa-float a { display: flex; align-items: center; height: 60px; border-radius: 100px; background: var(--wa); color: #fff; box-shadow: 0 12px 34px -8px rgba(37,211,102,0.6); overflow: hidden; transition: transform .3s var(--ease); }
.wa-float a:hover { transform: translateY(-3px) scale(1.02); }
.wa-float .wa-ic { width: 60px; height: 60px; display: grid; place-items: center; flex: none; }
.wa-float .wa-ic svg { width: 30px; height: 30px; }
.wa-float .wa-label { max-width: 0; white-space: nowrap; font-size: 15px; font-weight: 600; overflow: hidden; transition: max-width .4s var(--ease), padding .4s var(--ease); }
.wa-float a:hover .wa-label { max-width: 190px; padding-right: 22px; }

@media (max-width: 940px) {
  .doc-layout { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 70px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
  .toc ol { grid-template-columns: 1fr 1fr; display: grid; }
  .nav-links { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 64px; }
  .brand { font-size: 15px; gap: 9px; }
  .brand .mark { width: 32px; height: 32px; }
  .brand small { display: none; }
  .nav-actions { gap: 9px; }
  .theme-toggle { width: 36px; height: 36px; border-radius: 10px; }
  .nav-actions .btn { padding: 11px 17px; font-size: 13.5px; }
  .doc-head { padding: 44px 0 34px; }
  .doc-head p { font-size: 15.5px; }
  .toc ol { grid-template-columns: 1fr; }
  .prose section { padding-bottom: 30px; }
  .prose section + section { padding-top: 30px; }
  .prose h2 { gap: 10px; }
  .prose p, .prose ul li { font-size: 15px; }
  .contact-card { padding: 22px 18px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .ft .desc { max-width: none; }
  .ft-bottom { flex-direction: column; align-items: flex-start; margin-top: 36px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float a { height: 54px; }
  .wa-float .wa-ic { width: 54px; height: 54px; }
  .wa-float .wa-ic svg { width: 27px; height: 27px; }
  .wa-float .wa-label { display: none; }
}

@media (max-width: 400px) {
  .brand .wm { font-size: 14px; }
  .nav-actions .btn { padding: 10px 14px; font-size: 13px; }
  .ft-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
