/* ═══════════════════════════════════════════════
   OwnMynd AI — Legal / Subpage Stylesheet
   Shared by /privacy/, /terms/, /contact/.
   Mirrors the homepage design tokens & typography
   so subpages feel native to the brand.
═══════════════════════════════════════════════ */

:root {
  --abyss:     #050F1A;
  --deep:      #071B2F;
  --ocean-mid: #0D2E4D;
  --ocean:     #0E3D56;
  --midnight:  #1A5C72;
  --current:   #2BA3C0;
  --surface:   #4DC4DC;
  --mist:      #A8D8E8;
  --pearl:     #E4F2F7;
  --gold:      #C9A96E;
  --white:     #FFFFFF;

  --teal-glow:   rgba(43,163,192,0.35);
  --teal-dim:    rgba(43,163,192,0.12);
  --teal-mid:    rgba(43,163,192,0.22);
  --teal-border: rgba(43,163,192,0.22);

  --text-primary:   rgba(255,255,255,0.94);
  --text-secondary: rgba(168,216,232,0.72);
  --text-muted:     rgba(168,216,232,0.58);

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --ease-spring: cubic-bezier(0.16,1,0.3,1);
  --ease-out:    cubic-bezier(0.0,0,0.2,1);
}

/* ── Reset & base ────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--abyss);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width:100%; display:block; }
button { cursor:pointer; border:none; outline:none; font-family:var(--font-body); }

:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-cta:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(77,196,220,0.35);
}
.visually-hidden, .sr-only {
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--teal-border); border-radius:2px; }

/* ── Sonar mark (logo only) ──────────────────── */
.sonar { position:relative; display:flex; align-items:center; justify-content:center; }
.sonar-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(43,163,192,0.5);
  animation: sonarPulse 3.2s ease-out infinite;
}
.sonar-core {
  border-radius:50%; background:var(--current);
  box-shadow:0 0 14px 5px rgba(43,163,192,0.5), 0 0 4px 1px rgba(255,255,255,0.65);
  position:relative; z-index:2;
  animation:coreHeart 2.2s ease-in-out infinite;
}
.sonar-inner {
  position:absolute; border-radius:50%; background:white;
  top:50%;left:50%;transform:translate(-50%,-50%); z-index:3;
}
@keyframes sonarPulse { 0%{opacity:0;transform:scale(0.55)} 15%{opacity:1} 80%{opacity:0.5} 100%{opacity:0;transform:scale(1)} }
@keyframes coreHeart { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

/* ── Skip link (a11y) ────────────────────────── */
.skip-link {
  position:absolute; top:-40px; left:8px; padding:8px 14px;
  background:var(--current); color:#fff; font-size:13px; border-radius:6px;
  z-index:1000; transition:top 0.2s;
}
.skip-link:focus { top:8px; }

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  padding: env(safe-area-inset-top) max(48px, env(safe-area-inset-right)) 0 max(48px, env(safe-area-inset-left));
  height: calc(68px + env(safe-area-inset-top));
  display: flex; align-items:center; justify-content:space-between;
  background: rgba(4,14,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43,163,192,0.08);
  transition: background 0.4s ease, border-bottom 0.4s ease;
}
.nav.scrolled {
  background: rgba(4,14,24,0.95);
  border-bottom: 1px solid rgba(43,163,192,0.14);
}
.nav-logo {
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display); font-weight:500; font-size:18px;
  color: #FFFFFF; letter-spacing:-0.01em;
}
.nav-logo em { font-style:italic; color: #B8EEF8; }
.nav-logo-sonar { width:22px; height:22px; }
.nav-logo-sonar .sonar-ring:nth-child(1) { width:22px;height:22px; animation-delay:0.54s; }
.nav-logo-sonar .sonar-ring:nth-child(2) { width:15px;height:15px; animation-delay:0.36s; }
.nav-logo-sonar .sonar-ring:nth-child(3) { width:8px;height:8px; animation-delay:0.18s; }
.nav-logo-sonar .sonar-core { width:4px;height:4px; box-shadow:0 0 6px 2px rgba(43,163,192,0.5); }
.nav-logo-sonar .sonar-inner { width:2px;height:2px; }

.nav-links {
  display:flex; align-items:center; gap:36px;
  list-style:none;
}
.nav-links a {
  font-family:var(--font-body); font-weight:400; font-size:14px;
  letter-spacing:0.04em; color:rgba(255,255,255,0.78);
  transition:color 0.2s;
}
.nav-links a:hover { color:#FFFFFF; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 26px; border-radius: 9px;
  background: linear-gradient(135deg, var(--midnight), var(--current));
  color: white; font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  box-shadow: 0 0 28px rgba(43,163,192,0.42), 0 2px 12px rgba(0,0,0,0.35);
  transition: box-shadow 0.3s, transform 0.2s;
}
.nav-cta:hover { box-shadow:0 0 38px rgba(43,163,192,0.62), 0 2px 16px rgba(0,0,0,0.4); transform:translateY(-1px); }

.nav-mobile-toggle {
  display:none; background:none; color:var(--mist);
  font-size:22px; width:44px; height:44px;
  align-items:center; justify-content:center;
}

.mobile-menu {
  position:fixed; inset:0; z-index:300;
  background:rgba(5,15,26,0.97);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  display:none; flex-direction:column; align-items:center; justify-content:center;
  gap:28px;
}
.mobile-menu.open { display:flex; }
.mobile-menu a {
  font-family:var(--font-display); font-size:32px; font-weight:300;
  color:rgba(255,255,255,0.8);
}
.mobile-menu a:hover { color:var(--surface); }
.mobile-menu-close {
  position:absolute; top:18px; right:18px;
  width:44px; height:44px; display:flex;
  align-items:center; justify-content:center;
  font-size:24px; background:none; color:var(--mist);
}

/* ── Page hero (subpage banner) ──────────────── */
.page-hero {
  position:relative;
  padding: calc(140px + env(safe-area-inset-top)) 80px 64px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(43,163,192,0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--abyss) 100%);
  border-bottom: 1px solid rgba(43,163,192,0.10);
  overflow:hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 80% 20%, rgba(43,163,192,0.12) 0%, transparent 45%);
}
.page-hero-inner {
  position:relative; max-width:820px; margin:0 auto;
}
.page-eyebrow {
  font-family:var(--font-body); font-size:11px; font-weight:500;
  letter-spacing:0.24em; text-transform:uppercase;
  color: var(--surface);
  margin-bottom:18px;
}
.page-headline {
  font-family:var(--font-display); font-weight:400;
  font-size:clamp(38px, 5vw, 60px); line-height:1.1;
  letter-spacing:-0.02em;
  color: #FFFFFF;
  margin-bottom:14px;
}
.page-headline em { font-style:italic; color:var(--mist); }
.page-sub {
  font-family:var(--font-body); font-weight:300;
  font-size:clamp(15px, 1.4vw, 17px); line-height:1.6;
  color: var(--text-secondary);
  max-width:620px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size:12px; letter-spacing:0.04em;
  color: rgba(168,216,232,0.55);
  margin-bottom:24px;
}
.breadcrumbs a {
  color: var(--mist); transition:color 0.2s;
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover { color:var(--surface); border-bottom-color: rgba(77,196,220,0.4); }
.breadcrumbs-sep { margin: 0 8px; color: rgba(168,216,232,0.3); }

/* ── Page body wrapper ───────────────────────── */
.page-body {
  padding: 60px 80px 100px;
  background: var(--abyss);
}
.page-body-inner {
  max-width: 820px; margin: 0 auto;
}

/* ── Policy typography (matches homepage modal) */
.policy-body { color:var(--text-secondary); font-size:14px; line-height:1.8; }
.policy-body .policy-title { font-family:var(--font-display); font-size:36px; font-weight:300; color:var(--white); margin:0 0 8px; }
.policy-body .policy-meta { font-size:12px; color:var(--text-muted); margin-bottom:48px; letter-spacing:0.04em; }
.policy-body h2 { font-family:var(--font-display); font-size:24px; font-weight:300; color:var(--white); margin:44px 0 14px; border-bottom:1px solid rgba(43,163,192,0.15); padding-bottom:10px; scroll-margin-top: 100px; }
.policy-body h3 { font-family:var(--font-body); font-size:15px; font-weight:500; color:rgba(255,255,255,0.85); margin:28px 0 10px; scroll-margin-top: 100px; }
.policy-body p { margin-bottom:14px; }
.policy-body strong { color:rgba(255,255,255,0.85); font-weight:500; }
.policy-body a { color:var(--surface); border-bottom:1px solid rgba(77,196,220,0.3); transition: border-bottom-color 0.2s; }
.policy-body a:hover { border-bottom-color:var(--surface); }
.policy-body ul, .policy-body ol { padding-left:20px; margin-bottom:14px; }
.policy-body li { margin-bottom:6px; }
.policy-body table { width:100%; border-collapse:collapse; margin:20px 0; font-size:12px; }
.policy-body th { text-align:left; padding:8px 12px; font-size:9px; letter-spacing:0.15em; text-transform:uppercase; color:var(--current); font-weight:400; border-bottom:1px solid rgba(43,163,192,0.2); }
.policy-body td { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.05); color:var(--text-secondary); }
.policy-body blockquote { border-left:3px solid var(--current); padding-left:18px; margin:20px 0; color:var(--text-muted); font-style:italic; }

.policy-contact-box {
  background: rgba(13,46,77,0.45);
  border: 1px solid rgba(43,163,192,0.18);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 18px 0;
}
.policy-contact-box strong { color:var(--surface); display:block; margin-bottom:10px; }

/* ── Sibling-page navigator ──────────────────── */
.page-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(43,163,192,0.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.page-nav a {
  display: block; padding: 18px 22px;
  border-radius: 12px;
  background: rgba(13,46,77,0.35);
  border: 1px solid rgba(43,163,192,0.15);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.page-nav a:hover {
  background: rgba(13,46,77,0.55);
  border-color: rgba(43,163,192,0.32);
  transform: translateY(-2px);
}
.page-nav-label {
  display:block;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.page-nav-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
  color: var(--white);
}
.page-nav .next { text-align: right; }

/* ── Footer ──────────────────────────────────── */
footer {
  background:var(--abyss); border-top:1px solid rgba(43,163,192,0.1);
  padding: 60px max(80px, env(safe-area-inset-right)) max(40px, calc(env(safe-area-inset-bottom) + 24px)) max(80px, env(safe-area-inset-left));
}
.footer-top {
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:60px;
  margin-bottom:52px;
  max-width: 1400px; margin-left:auto; margin-right:auto;
}
.footer-logo {
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
  font-family:var(--font-display); font-size:17px; font-weight:400; color:var(--white);
}
.footer-logo em { font-style:italic; color:var(--surface); }
.footer-logo-sonar { width:20px; height:20px; }
.footer-tagline {
  font-size:13px; color:var(--text-secondary); line-height:1.6; max-width:280px; margin-bottom:24px;
}
.footer-social { display:flex; gap:12px; }
.social-btn {
  width:44px; height:44px; border-radius:12px;
  background:rgba(43,163,192,0.1); border:1px solid rgba(43,163,192,0.2);
  display:flex; align-items:center; justify-content:center;
  transition:background 0.2s, border-color 0.2s, transform 0.2s;
}
.social-btn:hover { background:rgba(43,163,192,0.2); border-color:rgba(43,163,192,0.4); transform:translateY(-2px); }
.social-btn svg { width:16px; height:16px; }

.footer-col-title {
  font-size:10px; letter-spacing:0.2em; text-transform:uppercase;
  color:rgba(168,216,232,0.5); margin-bottom:18px; font-weight:300;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a {
  font-size:13px; color:rgba(255,255,255,0.5);
  transition:color 0.2s;
}
.footer-links a:hover { color:var(--surface); }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.05); padding-top:28px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  max-width: 1400px; margin: 0 auto;
}
.footer-made {
  font-size:13px; color:rgba(255,255,255,0.35);
  display:flex; align-items:center; gap:5px; flex-wrap:wrap;
}
.footer-heart {
  display:inline-block; font-size:12px;
  filter: drop-shadow(0 0 4px rgba(255,90,120,0.4));
  transform: translateY(-1px);
}
.footer-legal { display:flex; gap:24px; }
.footer-legal a { font-size:12px; color:rgba(255,255,255,0.3); transition:color 0.2s; }
.footer-legal a:hover { color:var(--surface); }
.footer-copy { font-size:12px; color:rgba(255,255,255,0.25); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding:0 24px; }
  .nav-links { display:none; }
  .nav-mobile-toggle { display:flex; }
  .page-hero { padding: calc(120px + env(safe-area-inset-top)) 28px 52px; }
  .page-body { padding: 48px 28px 80px; }
  .footer-top { grid-template-columns:1fr 1fr; gap:40px; padding:0 4px; }
}
@media (max-width: 540px) {
  .page-nav { grid-template-columns: 1fr; }
  .page-nav .next { text-align: left; }
  .footer-top { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
  .footer-legal { flex-wrap: wrap; gap: 14px; }
}
