/* ==========================================================================
   Turn Financial — Modern Community Savings Circles
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-base: #060911;
  --bg-surface: #0c1220;
  --bg-elevated: #111a2e;
  --bg-card: #15223a;
  --bg-card-hover: #1b2c4c;
  --bg-input: #0a0f1d;

  /* Accents */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-800: #064e3b;
  --emerald-950: #022c22;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-border: rgba(16, 185, 129, 0.35);

  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.2);

  /* Neutrals */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: #1e293b;
  --border-medium: #334155;
  --border-light: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px var(--emerald-glow);

  /* Transitions */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-standard);
  --transition-normal: 250ms var(--ease-standard);
}

/* --------------------------------------------------------------------------
   Reset & Base Elements
   -------------------------------------------------------------------------- */

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.04) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--emerald-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--emerald-100);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 17, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 16px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 0 16px var(--emerald-glow);
  border: 1px solid var(--emerald-400);
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-400);
  border: 1px solid var(--emerald-border);
  padding: 3px 8px;
  border-radius: 999px;
  margin-inline-start: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 10px 20px;
  min-height: 46px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--emerald-400), var(--emerald-500));
  color: #022c22;
  box-shadow: 0 4px 14px var(--emerald-glow);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
}

.btn-sm {
  padding: 7px 14px;
  min-height: 38px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.hero-section {
  padding-block: 64px 48px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #34d399, #10b981, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Waitlist Card & Compliant Form (Figma A2P Standard)
   -------------------------------------------------------------------------- */

.signup-card-wrapper {
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 50px;
}

.signup-card {
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.signup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-400), transparent);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid var(--emerald-border);
}

.signup-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.signup-card p.form-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-label .required-star {
  color: #f87171;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.country-flag {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  user-select: none;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1.05rem;
  color: #fff;
  font-family: inherit;
  transition: all var(--transition-fast);
  min-height: 50px;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-control:focus {
  border-color: var(--emerald-400);
  background-color: #0d1629;
  box-shadow: 0 0 0 3px var(--emerald-glow);
  outline: none;
}

.form-control.has-prefix {
  padding-left: 64px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.form-control.is-invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.field-error-msg {
  display: none;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 6px;
  font-weight: 500;
}

.field-error-msg.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Compliant Multi-Checkbox Architecture (A2P Modality Standard)
   -------------------------------------------------------------------------- */

.fieldset-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.message-type-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.message-type-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.message-type-card.selected {
  border-color: var(--emerald-border);
  background: rgba(16, 185, 129, 0.08);
}

.message-type-card input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-500);
  cursor: pointer;
}

.message-type-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.message-type-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Separate Terms & Privacy Consent Checkbox */
.terms-consent-group {
  margin-block: 18px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.terms-label-wrapper {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.terms-label-wrapper input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-500);
  cursor: pointer;
}

.terms-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.terms-text a {
  color: var(--emerald-400);
  text-decoration: underline;
  font-weight: 600;
}

.terms-text a:hover {
  color: #fff;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* Legal Disclosures Box (Directly Under Button) */
.form-legal-disclosure-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-legal-disclosure-box p + p {
  margin-top: 8px;
}

.form-legal-disclosure-box strong {
  color: var(--text-primary);
}

.form-legal-disclosure-box a {
  color: var(--emerald-400);
  text-decoration: underline;
}

/* Success Confirmation State */
.signup-success-state {
  display: none;
  text-align: center;
  padding: 24px 12px;
}

.signup-success-state.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald-400);
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--emerald-400);
}

.signup-success-state h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.signup-success-state p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.success-callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--emerald-border);
  border-radius: 10px;
  padding: 18px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.success-callout-box strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Trust Badges Bar
   -------------------------------------------------------------------------- */

.trust-bar {
  border-block: 1px solid var(--border-subtle);
  background: rgba(12, 18, 32, 0.7);
  padding-block: 22px;
  margin-bottom: 70px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--emerald-400);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Section Layouts
   -------------------------------------------------------------------------- */

.section {
  padding-block: 70px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: 50px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Heritage Section (Susu, Pardna, Tanda, Sòl, Chit Funds)
   -------------------------------------------------------------------------- */

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.heritage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 20px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.heritage-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-border);
  background: var(--bg-elevated);
}

.heritage-origin {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.heritage-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.heritage-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   The 5 Core Pillars Grid
   -------------------------------------------------------------------------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald-border);
  display: grid;
  place-items: center;
  color: var(--emerald-400);
  margin-bottom: 20px;
}

.pillar-icon-box.gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold-400);
}

.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-metric {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pillar-metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-400);
}

.pillar-metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Conversational Concierge ("Success") Showcase
   -------------------------------------------------------------------------- */

.concierge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.concierge-phone-mockup {
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  margin-inline: auto;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.butler-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), #047857);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.phone-contact-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.phone-contact-info span {
  font-size: 0.78rem;
  color: var(--emerald-400);
  font-family: var(--font-mono);
}

.chat-bubble-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.chat-bubble.butler {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-bubble.user {
  background: var(--emerald-600);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.faq-summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--emerald-400);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-content {
  padding: 0 24px 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-content p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Legal Pages Specific Styles (Terms, Privacy, SMS)
   -------------------------------------------------------------------------- */

.legal-document-layout {
  padding-block: 50px 80px;
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.legal-meta-item strong {
  color: var(--text-secondary);
}

.legal-content-body {
  max-width: 860px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--emerald-400);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content-body p {
  margin-bottom: 16px;
}

.legal-content-body ul, .legal-content-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.legal-content-body li {
  margin-bottom: 8px;
}

.legal-callout-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--emerald-400);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin-block: 24px;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.legal-callout-box.alert {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--gold-400);
}

.legal-callout-box strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Modal Dialogs
   -------------------------------------------------------------------------- */

dialog.legal-modal {
  margin: auto;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-primary);
  max-width: 850px;
  width: 90%;
  max-height: 85vh;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

dialog.legal-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-header {
  padding: 20px 28px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
  padding-block: 60px 40px;
  margin-top: auto;
  font-size: 0.84rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  color: var(--text-muted);
  max-width: 380px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-disclaimers {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.6;
}

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

.footer-copyright-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .concierge-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    padding-block: 44px 32px;
  }

  .signup-card {
    padding: 26px 18px;
  }

  .pillar-card {
    padding: 24px 20px;
  }
}
