/* ===================================================================
   Solaro — legal pages (privacy / terms)
   Matches the landing page visual identity.
   =================================================================== */

/* ---- Design tokens (dark default) ---- */
:root {
  --bg:            #0C0B09;
  --card:          rgba(255, 255, 255, 0.05);
  --card-feature:  rgba(255, 255, 255, 0.04);
  --card-hover:    rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-soft:   rgba(255, 255, 255, 0.06);
  --text:          #F5F0E8;
  --text-dim:      #9A9080;
  --text-faint:    rgba(255, 255, 255, 0.35);
  --blue:          #00B2FF;
  --slate:         #6A8CAF;
  --accent2:       #00B2FF;   /* alias used by delete-account page */
  --nav-bg:        rgba(12, 11, 9, 0.8);
  --sep:           rgba(255, 255, 255, 0.18);
  --ghost-hover:   rgba(255, 255, 255, 0.03);
  --danger:        #FF6B6B;
  --success:       #4ADE80;

  --radius-card:   16px;
  --radius-btn:    12px;
  --maxw:          1100px;
  --readw:         820px;
}

/* ---- Light theme — warm off-white ---- */
[data-theme="light"] {
  --bg:            #F7F3EC;
  --card:          rgba(12, 11, 9, 0.03);
  --card-feature:  rgba(12, 11, 9, 0.025);
  --card-hover:    rgba(12, 11, 9, 0.05);
  --border:        rgba(12, 11, 9, 0.1);
  --border-strong: rgba(12, 11, 9, 0.2);
  --border-soft:   rgba(12, 11, 9, 0.07);
  --text:          #1A1712;
  --text-dim:      #6B6354;
  --text-faint:    rgba(12, 11, 9, 0.4);
  --blue:          #0091D6;
  --slate:         #4A6B8F;
  --accent2:       #0091D6;
  --nav-bg:        rgba(247, 243, 236, 0.8);
  --sep:           rgba(12, 11, 9, 0.18);
  --ghost-hover:   rgba(12, 11, 9, 0.04);
  --danger:        #D64545;
  --success:       #2E9E5B;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; transition: color 200ms ease-out, opacity 200ms ease-out; }
a:hover { opacity: 0.8; text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* The landing page has a flat dark background — hide the old orbs */
.bg-orbs { display: none; }

/* ===================================================================
   Navigation
   =================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark:hover { opacity: 1; text-decoration: none; }

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

/* ---- Theme toggle (icon button) ---- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .toggle-thumb { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Show sun in dark mode (click → light), moon in light mode */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ===================================================================
   Page layout
   =================================================================== */
.page-wrapper {
  padding: 128px 0 80px;
}

.page-header,
.page-content {
  max-width: var(--readw);
  margin: 0 auto;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.page-back:hover { color: var(--text); text-decoration: none; opacity: 1; }
.page-back svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--slate));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ===================================================================
   Document body
   =================================================================== */
.doc-highlight {
  background: rgba(0, 178, 255, 0.06);
  border: 1px solid rgba(0, 178, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 40px 0;
  font-size: 15px;
  color: var(--text-dim);
}
.doc-highlight strong { color: var(--text); font-weight: 600; }

.doc-section { margin-top: 44px; }

.doc-section h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.doc-subsection { margin-top: 28px; }

.doc-section h3,
.doc-subsection h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.doc-section p { color: var(--text-dim); font-size: 15px; margin-bottom: 14px; }
.doc-section strong { color: var(--text); font-weight: 600; }
.doc-section em { color: var(--text-dim); }

.doc-section ul,
.doc-section ol {
  margin: 0 0 16px 22px;
  color: var(--text-dim);
  font-size: 15px;
}
.doc-section li { margin-bottom: 8px; }

/* Table of contents */
.doc-toc { margin-left: 20px; }
.doc-toc li { margin-bottom: 10px; }
.doc-toc a { color: var(--blue); }

/* Tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.doc-table th,
.doc-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-dim);
}
.doc-table th {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.doc-table tr:nth-child(even) td { background: var(--card-feature); }

/* ===================================================================
   Delete-account page components
   =================================================================== */
.delete-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--readw);
  margin: 32px auto 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.delete-meta-item { display: flex; flex-direction: column; gap: 4px; }
.delete-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.delete-meta-value { font-size: 15px; font-weight: 500; color: var(--text); }

.delete-options-grid,
.delete-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.delete-option-card,
.delete-data-card {
  position: relative;
  overflow: hidden;
  background: var(--card-feature);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.delete-option-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
}
.badge-instant { color: var(--blue); background: rgba(0, 178, 255, 0.1); border: 1px solid rgba(0, 178, 255, 0.25); }
.badge-email   { color: var(--slate); background: rgba(106, 140, 175, 0.12); border: 1px solid rgba(106, 140, 175, 0.28); }

.delete-option-number {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  opacity: 0.06;
}

.delete-option-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 18px;
}

.delete-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.delete-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.delete-step strong { color: var(--text); font-weight: 600; }
.delete-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 178, 255, 0.12);
  border: 1px solid rgba(0, 178, 255, 0.3);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.delete-note strong { color: var(--text); font-weight: 600; }

.delete-data-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.title-deleted  { color: var(--danger); }
.title-retained { color: var(--success); }

.delete-checklist { list-style: none; margin: 0; padding: 0; }
.delete-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.delete-checklist li:last-child { margin-bottom: 0; }

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.icon-del { color: var(--danger);  background: rgba(255, 107, 107, 0.14); }
.icon-ret { color: var(--success); background: rgba(74, 222, 128, 0.16); }

/* ===================================================================
   Contact page
   =================================================================== */
.contact-card {
  text-align: center;
  background: var(--card-feature);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px 32px;
  margin-top: 32px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 14px;
  background: rgba(0, 178, 255, 0.1);
  border: 1px solid rgba(0, 178, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}

.contact-email {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue);
}
.contact-email:hover { text-decoration: underline; opacity: 0.85; }

.contact-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ===================================================================
   Footer
   =================================================================== */
.footer { border-top: 1px solid var(--border-soft); margin-top: 60px; }

.footer-inner {
  padding: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.footer-logo:hover { opacity: 1; text-decoration: none; }
.footer-logo .brand-logo { width: 28px; height: 28px; border-radius: 7px; }

.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); text-decoration: none; opacity: 1; }

.footer-copy { font-size: 13px; color: var(--text-faint); width: 100%; }

/* ===================================================================
   Entrance animation
   =================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 768px) {
  .page-wrapper { padding: 108px 0 60px; }
  .page-title { font-size: 34px; }
  .doc-section h2 { font-size: 21px; }
  .doc-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 720px) {
  .delete-options-grid,
  .delete-data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-title { font-size: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .delete-meta { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
