:root {
  --ishtar-blue-950: #0a1f38;
  --ishtar-blue-900: #0e2c4d;
  --ishtar-blue-800: #163d67;
  --ishtar-blue-700: #1f5289;
  --ishtar-gold-600: #b8892b;
  --ishtar-gold-500: #cda042;
  --ishtar-gold-300: #e8cf94;
  --ivory: #faf6ec;
  --ink: #1c2530;
  --muted: #6b7280;
  --danger: #b5423a;
  --success: #2f7a4f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(10, 31, 56, 0.10);
  --shadow-sm: 0 6px 16px rgba(10, 31, 56, 0.08);
  --line: rgba(184, 137, 43, 0.18);
}

* { box-sizing: border-box; }

/* "Desert Gold" theme: warm sand background, soft radial gold/blue glows,
   rounder cards, gold accent details. */
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(205, 160, 66, 0.16), transparent 45%),
    radial-gradient(circle at 100% 12%, rgba(10, 31, 56, 0.08), transparent 40%),
    linear-gradient(180deg, #fdfbf4 0%, #f4ecd8 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 100%;
}

body[dir="rtl"] { text-align: right; }

a { color: inherit; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ishtar-blue-950);
}

.brand .gate {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--ishtar-gold-500), var(--ishtar-gold-600));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(184, 137, 43, 0.35);
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--ishtar-gold-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-toggle {
  background: #fff;
  border: 1.5px solid var(--ishtar-gold-500);
  color: var(--ishtar-blue-900);
  border-radius: 999px;
  padding: 7px 30px 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b8892b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: var(--shadow-sm);
}
.lang-toggle:hover { background-color: #fffdf7; }
select.lang-toggle option {
  color: var(--ink);
  background: #fff;
}
body[dir="rtl"] .lang-toggle {
  padding: 7px 16px 7px 30px;
  background-position: left 14px center;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.hero {
  text-align: center;
  padding: 44px 16px 20px;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(184, 137, 43, 0.12);
  color: var(--ishtar-gold-600);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.3rem;
  margin: 0 0 12px;
  color: var(--ishtar-blue-950);
  line-height: 1.15;
}
.hero p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.role-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10, 31, 56, 0.14); }
.role-card .icon {
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--ishtar-blue-900), var(--ishtar-blue-950));
  color: var(--ishtar-gold-300);
}
.role-card h3 { margin: 0 0 3px; color: var(--ishtar-blue-950); }
.role-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.panel h2 {
  margin-top: 0;
  color: var(--ishtar-blue-900);
  font-size: 1.15rem;
  border-bottom: 2px solid var(--ishtar-gold-300);
  padding-bottom: 10px;
}

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
input, select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e3d8ba;
  background: #fffefb;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--ishtar-gold-500);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(120deg, var(--ishtar-blue-800), var(--ishtar-blue-950)); color: var(--ivory); box-shadow: 0 10px 22px rgba(10, 31, 56, 0.22); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-gold { background: linear-gradient(120deg, var(--ishtar-gold-500), var(--ishtar-gold-600)); color: #fff; box-shadow: 0 10px 22px rgba(184, 137, 43, 0.3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: #fff; border: 1.5px solid var(--ishtar-gold-500); color: var(--ishtar-blue-900); }
.btn-outline:hover { background: #fffaf0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

.map {
  position: relative;
  z-index: 1; /* stay below .ride-fields so its search dropdown can overlay it */
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.landmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.landmark-btn {
  border: 1px solid #e3d8ba;
  background: #fffefb;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.landmark-btn:hover { border-color: var(--ishtar-gold-500); }
.landmark-btn.picked-pickup { border-color: var(--success); background: #eaf6ee; }
.landmark-btn.picked-dropoff { border-color: var(--ishtar-gold-600); background: #fbf1dc; }

/* ---- Ride booking bar: pickup + "Where to?" fields, Uber-style ---- */
.ride-fields {
  position: relative;
  z-index: 20; /* keep the live Places dropdown above the map below it */
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffefb;
  box-shadow: var(--shadow-sm);
  /* was overflow:hidden — that clipped the live search-results dropdown,
     which needs to expand below this box. Corners are kept clean per-row
     below instead (only the first/last row rounds its outer corner). */
}
.ride-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.ride-field-row:first-child.active { border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }
.ride-field-row:last-child.active { border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.ride-field-row + .ride-field-row { border-top: 1px solid var(--line); }
.ride-field-row.active { background: #fbf1dc; }
.ride-field-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--success);
  position: relative;
}
.dot-pickup { border-color: var(--success); }
.dot-dropoff { border-radius: 3px; border-color: var(--ishtar-gold-600); background: var(--ishtar-gold-600); }
/* Connecting line between the two dots, like the reference pickup/drop-off bar */
.ride-field-row[data-field="pickup"] .ride-field-dot::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 3px;
  width: 1px;
  height: 28px;
  background: var(--line);
}
.ride-field-body { flex: 1; min-width: 0; }
.ride-field-display {
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ride-field-display.placeholder { color: var(--muted); }
.ride-field-search { position: relative; z-index: 20; }
.ride-field-search gmp-place-autocomplete { width: 100%; display: block; position: relative; z-index: 20; }

.suggestions-list {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: -16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  border-top: 1px solid var(--line);
  background: #fffefb;
}
.suggestion-item:hover { background: #fbf1dc; }
.suggestion-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.suggestion-text { min-width: 0; }
.suggestion-name { font-size: 0.9rem; color: var(--ink); }
.suggestion-sub { font-size: 0.75rem; color: var(--muted); }


.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill-requested { background: #fde9c8; color: #8a5a00; }
.pill-accepted, .pill-arriving { background: #d9e8ff; color: #1a4a8a; }
.pill-in_progress { background: #dcefe1; color: #1e6b3d; }
.pill-completed { background: #e4e4e4; color: #444; }
.pill-no_drivers { background: #fadbd8; color: #922b21; }
.pill-cancelled { background: #fadbd8; color: #922b21; }
.pill-online { background: #dcefe1; color: #1e6b3d; }
.pill-offline { background: #ececec; color: #666; }
.pill-approved, .pill-verified { background: #dcefe1; color: #1e6b3d; }
.pill-pending { background: #fde9c8; color: #8a5a00; }
.pill-rejected { background: #fadbd8; color: #922b21; }
.pill-none { background: #ececec; color: #666; }

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #eee2c9;
  background: #fffefb;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.doc-row .doc-meta { display: flex; flex-direction: column; gap: 2px; }
.doc-row .doc-actions { display: flex; gap: 6px; }
.doc-row .doc-actions .btn { font-size: 0.75rem; padding: 7px 14px; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 10px 8px; text-align: start; border-bottom: 1px solid #eee2c9; }
th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  background: linear-gradient(150deg, var(--ishtar-blue-900), var(--ishtar-blue-950));
  color: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--ishtar-gold-300); }
.stat .label { font-size: 0.75rem; opacity: 0.85; margin-top: 2px; }

.driver-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fffefb, #fbf6e8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 10px 0;
}
.driver-info .avatar, .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, var(--ishtar-gold-500), var(--ishtar-gold-600));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff;
  box-shadow: 0 6px 14px rgba(184, 137, 43, 0.3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---- Driver card (rider active-ride panel) — dark card, echoes the
   ride-hailing-app convention of a photo+vehicle summary regardless of the
   rest of the page's light theme. ---- */
.driver-card {
  background: linear-gradient(180deg, #202225, #17181a);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 10px 0;
  color: #f5f5f5;
  box-shadow: var(--shadow-sm);
}
.driver-card .muted { color: #9aa0a6; }
.driver-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.driver-card-photo { position: relative; width: 92px; height: 64px; flex-shrink: 0; }
.driver-card-photo .avatar-lg {
  width: 64px; height: 64px;
  border: 3px solid #2c2d30;
  position: relative;
  z-index: 2;
}
.driver-car-icon {
  position: absolute;
  left: 38px;
  top: 14px;
  font-size: 2.4rem;
  line-height: 1;
  z-index: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.driver-card-vehicle { text-align: right; }
.driver-plate {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: #fff;
}
body[dir="rtl"] .driver-card-vehicle { text-align: left; }
.driver-card-mid { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.driver-rating { font-size: 0.85rem; color: #f5f5f5; }
.driver-name { font-weight: 800; font-size: 1.05rem; color: #fff; margin-top: 2px; text-transform: uppercase; }
.driver-trips { font-size: 0.82rem; }
.driver-msg-bubble {
  width: 100%;
  margin-top: 14px;
  background: var(--ishtar-blue-700);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  text-align: left;
}
body[dir="rtl"] .driver-msg-bubble { text-align: right; }
.driver-msg-bubble #driverMsgText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.driver-msg-arrow { flex-shrink: 0; font-size: 1.1rem; }
body[dir="rtl"] .driver-msg-arrow { transform: scaleX(-1); }

#chatMessages {
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px;
}
.chat-msg {
  max-width: 78%;
  padding: 8px 13px;
  border-radius: 15px;
  font-size: 0.85rem;
  line-height: 1.35;
  word-break: break-word;
}
.chat-msg-mine {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--ishtar-blue-800), var(--ishtar-blue-950));
  color: var(--ivory);
  border-bottom-right-radius: 4px;
}
.chat-msg-theirs {
  align-self: flex-start;
  background: #fbf1dc;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
body[dir="rtl"] .chat-msg-mine { align-self: flex-start; border-bottom-right-radius: 15px; border-bottom-left-radius: 4px; }
body[dir="rtl"] .chat-msg-theirs { align-self: flex-end; border-bottom-left-radius: 15px; border-bottom-right-radius: 4px; }

.star-row { font-size: 1.8rem; cursor: pointer; letter-spacing: 4px; color: var(--ishtar-gold-500); }
.star-row span { opacity: 0.3; }
.star-row span.on { opacity: 1; }

.muted { color: var(--muted); font-size: 0.85rem; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.switch { position: relative; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #e3d8ba; border-radius: 999px; transition: 0.2s;
}
.slider:before {
  position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px;
  background-color: white; border-radius: 50%; transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(24px); }
body[dir="rtl"] input:checked + .slider:before { transform: translateX(-24px); }

/* Admin: delete-photos options */
.photo-opt { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; color: inherit; font-size: 0.95rem; margin: 0; cursor: pointer; }
.photo-opt input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--danger); }
.photo-opt .muted { white-space: nowrap; }

/* Admin sign-in and logins */
.auth-form input, .auth-form select { width: 100%; }
.form-error { min-height: 1.2em; margin: 8px 0 0; color: var(--danger); font-size: 0.9rem; }
.form-error.ok { color: var(--success, #2e7d32); }
.account-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 8px 0 16px; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.login-row .login-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.login-row .btn { padding: 6px 12px; font-size: 0.85rem; }
.add-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; margin-top: 14px; }
.add-login input, .add-login select { width: 100%; }

/* Rider / driver sign-in tabs */
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin: 4px 0 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tab.active { background: var(--ishtar-blue-900); color: #fff; box-shadow: var(--shadow-sm); }
.auth-tab:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--ishtar-gold-500); outline-offset: 2px; }
.link-btn { display: block; margin-inline: auto; border: 0; background: none; padding: 6px; font: inherit; color: var(--ishtar-blue-700); text-decoration: underline; cursor: pointer; }

/* Passkeys: "or" divider, setup offer, app lock */
.or-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 0.85rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.passkey-offer { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(10, 31, 56, 0.45); }
.passkey-offer-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); padding: 22px 20px 14px; box-shadow: var(--shadow); text-align: center; }
.passkey-offer-card h3 { margin: 6px 0 6px; color: var(--ishtar-blue-950); }
.passkey-icon { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--ishtar-gold-500), var(--ishtar-gold-600)); }
.app-lock { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--ivory); }
.app-lock-card { width: 100%; max-width: 380px; text-align: center; }
.app-lock-card .brand-mark { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--ishtar-gold-500), var(--ishtar-gold-600)); box-shadow: var(--shadow-sm); }
.app-lock-card h2 { color: var(--ishtar-blue-950); margin: 6px 0; }
html.is-locked body { overflow: hidden; }
@media (min-width: 640px) { .passkey-offer { align-items: center; } }
#passkeyToggle { white-space: nowrap; flex-shrink: 0; }

/* Delete my account */
.danger-zone { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-zone h3 { margin: 0 0 6px; color: var(--danger); }
.app-lock-card a.btn { display: block; text-decoration: none; }

/* Privacy Policy links */
.site-footer { text-align: center; padding: 28px 16px 36px; font-size: 0.9rem; }
.site-footer a, .fine-print a, #panel-security a { color: var(--ishtar-blue-700); }
.fine-print { font-size: 0.82rem; margin: 6px 0 0; }

/* Privacy Policy and Terms pages */
  .policy { max-width: 760px; margin: 0 auto; }
  .policy article { line-height: 1.7; }
  .policy h1 { color: var(--ishtar-blue-950); margin: 8px 0 4px; }
  .policy h2 { color: var(--ishtar-blue-900); font-size: 1.15rem; margin: 26px 0 6px; }
  .policy h3 { font-size: 1rem; margin: 14px 0 4px; color: var(--ink); }
  .policy ul { padding-inline-start: 1.2em; margin: 6px 0; }
  .policy li { margin: 3px 0; }
  .policy .updated { color: var(--muted); font-size: 0.9rem; }
  .policy .summary { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
  .policy a { color: var(--ishtar-blue-700); }
  .legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
  .legal-toc a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
  .legal-part { scroll-margin-top: 16px; }
  .legal-part + .legal-part { margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--line); }
  .policy .part-label { margin: 18px 0 0; color: var(--ishtar-gold-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .policy .part-title { color: var(--ishtar-blue-950); font-size: 1.45rem; margin: 2px 0 4px; }
  .policy h3 { color: var(--ishtar-blue-900); font-size: 1.1rem; margin: 24px 0 6px; }
  .policy h4 { font-size: 1rem; margin: 14px 0 4px; color: var(--ink); }

/* Accept Privacy Policy and Terms */
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-size: 0.9rem; line-height: 1.5; text-align: start; cursor: pointer; }
.terms-check input { width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--ishtar-blue-900); }
.terms-check a { color: var(--ishtar-blue-700); }
.terms-gate { z-index: 9500; align-items: center; }
