/* DriveHub Legal Pages — Shared Styles */

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

:root {
  --bg:           #F2F2F7;
  --surface:      #FFFFFF;
  --surface-alt:  #F2F2F7;
  --text:         #1C1C1E;
  --text-sec:     #6E6E73;
  --accent:       #0A84FF;
  --accent-hov:   #0066CC;
  --danger:       #FF3B30;
  --danger-hov:   #D42B20;
  --border:       rgba(0,0,0,0.09);
  --shadow:       0 1px 4px rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.04);
  --radius:       14px;
  --radius-sm:    8px;
  --font:         -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #000000;
    --surface:     #1C1C1E;
    --surface-alt: #2C2C2E;
    --text:        #FFFFFF;
    --text-sec:    #AEAEB2;
    --border:      rgba(255,255,255,0.1);
    --shadow:      0 2px 12px rgba(0,0,0,0.4);
  }
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Layout ─────────────────────────────── */
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ─────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 56px; gap: 12px;
}
.logo {
  font-size: 17px; font-weight: 800;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.4px; flex-shrink: 0;
}
.logo em { color: var(--accent); font-style: normal; }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-sec); text-decoration: none;
  padding: 6px 10px; border-radius: 6px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent);
  background: rgba(10,132,255,0.08);
}

/* ─── Main ───────────────────────────────── */
main { padding: 40px 0 64px; }

/* ─── Page Header ────────────────────────── */
.page-hero {
  padding: 40px 20px 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-hero .badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(10,132,255,0.1); color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 20px; margin-bottom: 14px;
}
.page-hero h1 {
  font-size: 30px; font-weight: 800;
  letter-spacing: -.6px; color: var(--text); margin-bottom: 8px;
}
.page-hero .meta {
  font-size: 13.5px; color: var(--text-sec);
}

/* ─── Cards ──────────────────────────────── */
.cards { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card.hl-blue  { border-left: 3px solid var(--accent); }
.card.hl-warn  { border-left: 3px solid #FF9F0A; }
.card.hl-red   { border-left: 3px solid var(--danger); }

.card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.card-num {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-num.orange { background: #FF9F0A; }
.card-num.red    { background: var(--danger); }

.card h2 {
  font-size: 16px; font-weight: 700; color: var(--text);
  line-height: 1.3;
}

.card p, .card li {
  font-size: 14.5px; color: var(--text-sec); line-height: 1.65;
}

.card p + p { margin-top: 8px; }

.card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.card ul li {
  padding: 7px 0 7px 18px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.card ul li:last-child { border-bottom: none; }
.card ul li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}
.card.hl-red ul li::before { background: var(--danger); }
.card.hl-warn ul li::before { background: #FF9F0A; }

/* Sub-section */
.card-sub {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-sub h3 {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-sec); margin-bottom: 8px;
}

/* ─── Highlight Box (inside card) ────────── */
.hbox {
  background: rgba(10,132,255,0.06);
  border: 1px solid rgba(10,132,255,0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
}
.hbox p { font-size: 14px; color: var(--text-sec); }

/* ─── Email pill ─────────────────────────── */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.email-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,132,255,0.08); color: var(--accent);
  padding: 8px 14px; border-radius: 20px;
  font-size: 13.5px; font-weight: 500;
  text-decoration: none !important;
  transition: background .15s;
  margin-top: 12px;
}
.email-pill:hover { background: rgba(10,132,255,0.14); }

/* ─── Footer ─────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
}
.site-footer .container {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.site-footer p { font-size: 12.5px; color: var(--text-sec); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  font-size: 13px; color: var(--text-sec);
  text-decoration: none; transition: color .15s;
}
.footer-nav a:hover { color: var(--accent); text-decoration: none; }

/* ─── Delete Account Page ────────────────── */
.delete-hero {
  padding: 48px 20px 36px;
  text-align: center;
}
.delete-hero .hero-icon {
  font-size: 52px; display: block; margin-bottom: 16px;
}
.delete-hero h1 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.5px; color: var(--text); margin-bottom: 12px;
}
.delete-hero .lead {
  font-size: 15.5px; color: var(--text-sec);
  max-width: 460px; margin: 0 auto; line-height: 1.6;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; margin: 24px 0;
}
.what-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.what-item .wi-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.what-item p { font-size: 12.5px; color: var(--text-sec); line-height: 1.4; margin: 0; }

.delete-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-label {
  display: block;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color .15s;
  margin-bottom: 16px;
}
.form-input:focus { border-color: var(--accent); }

/* ─── Buttons ────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; text-decoration: none;
  transition: background .15s, opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hov); }
.btn-secondary {
  background: var(--surface-alt); color: var(--text-sec);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-group { display: flex; flex-direction: column; gap: 10px; }

/* ─── Modal ──────────────────────────────── */
.modal-wrap {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fade-in .15s ease;
}
@media (min-width: 480px) { .modal-wrap { align-items: center; } }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 380px; width: 100%;
  box-shadow: 0 8px 48px rgba(0,0,0,.32);
  animation: slide-up .2s ease;
}
.modal-box h2 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.modal-box p  { font-size: 14.5px; color: var(--text-sec); margin-bottom: 22px; line-height: 1.55; }

@keyframes fade-in  { from { opacity:0; } to { opacity:1; } }
@keyframes slide-up { from { transform: translateY(16px); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* ─── Loading / Success states ───────────── */
.state-panel { text-align: center; padding: 48px 24px; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-panel .state-icon { font-size: 52px; display: block; margin-bottom: 16px; }
.state-panel h2 { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.state-panel p  { font-size: 14.5px; color: var(--text-sec); line-height: 1.6; }
.state-panel p + p { margin-top: 8px; }

.note-card {
  background: rgba(10,132,255,0.06);
  border: 1px solid rgba(10,132,255,0.14);
  border-radius: var(--radius-sm);
  padding: 14px 16px; margin-top: 20px;
  text-align: left;
}
.note-card p { font-size: 13.5px; color: var(--text-sec); }
.note-card strong { color: var(--text); }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 500px) {
  .page-hero h1 { font-size: 24px; }
  .delete-hero h1 { font-size: 24px; }
  .site-nav a  { font-size: 12px; padding: 5px 7px; }
  main { padding: 24px 0 48px; }
  .card { padding: 18px; }
}

.hidden { display: none !important; }
