/* ========================================================
   CVPro - shared legal and support pages
   ======================================================== */

:root {
  color-scheme: light;
  --navy: #081739;
  --navy-soft: #102654;
  --electric: #1268f3;
  --electric-dark: #0755d1;
  --cyan: #5dd8ff;
  --blue-tint: #edf5ff;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --ink: #101c34;
  --graphite: #53647d;
  --subtle: #8190a5;
  --rule: #dfe6ef;
  --borderHover: #cbd5e1;
  --success: #168a4b;
  --danger: #d93025;
  --warning: #9a4d06;
  --gradient-hero: linear-gradient(128deg, #071431 0%, #102b61 58%, #0a4f91 100%);
  --radius-card: 20px;
  --radius-small: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(8, 23, 57, .04), 0 12px 34px rgba(8, 23, 57, .07);
  --shadow-lift: 0 18px 50px rgba(8, 23, 57, .12);
  --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 22%, rgba(18, 104, 243, .07), transparent 25rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 3px; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(18, 104, 243, .28);
  outline-offset: 3px;
}

::selection { background: rgba(18, 104, 243, .18); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border: 2px solid transparent; border-radius: 99px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--subtle); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--electric-dark);
  font-size: 13px;
  font-weight: 750;
  box-shadow: var(--shadow-lift);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(223, 230, 239, .9);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.nav-inner {
  width: min(1120px, 100%);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark,
.footer-logo-mark {
  display: flex;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(8, 23, 57, .12);
}

.nav-logo-mark { width: 36px; height: 36px; }
.footer-logo-mark { width: 30px; height: 30px; border-radius: 8px; }

.nav-logo-mark img,
.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-brand { color: var(--navy); font-size: 17px; font-weight: 780; letter-spacing: -.35px; }

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

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active { background: var(--blue-tint); color: var(--electric-dark); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 66px;
  background: var(--gradient-hero);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 430px;
  height: 430px;
  top: -280px;
  right: -80px;
  background: rgba(93, 216, 255, .11);
  border: 1px solid rgba(93, 216, 255, .13);
}

.hero::after {
  width: 310px;
  height: 310px;
  bottom: -245px;
  left: -40px;
  background: rgba(18, 104, 243, .28);
}

.hero > :not(.hero-inner) {
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(93, 216, 255, .3);
  border-radius: var(--radius-pill);
  background: rgba(93, 216, 255, .1);
  color: #9ae7ff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.hero-sub {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(14px, 2vw, 16px);
}

.hero-sub strong { color: #fff; font-weight: 650; }

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 560;
}

/* Main content and legal document layout */
.page-content {
  width: min(100%, 910px);
  margin: 0 auto;
  padding: 54px 24px 88px;
}

.legal-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.legal-document { min-width: 0; }

.toc-card {
  padding: 22px;
  margin-bottom: 36px;
  border: 1px solid rgba(18, 104, 243, .12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 28px rgba(8, 23, 57, .05);
}

.legal-layout > .toc-card {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  margin-bottom: 0;
}

.toc-card h2 {
  margin-bottom: 14px;
  color: var(--electric-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--graphite);
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.toc-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a8bad1;
}

.toc-list a:hover { color: var(--electric-dark); background: var(--blue-tint); transform: translateX(2px); }
.toc-list a:hover::before { background: var(--electric); }

.section { margin-bottom: 20px; scroll-margin-top: 88px; }

.legal-document > .section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(223, 230, 239, .95);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-card);
}

.legal-document > .legal-intro {
  border-color: rgba(18, 104, 243, .18);
  background: linear-gradient(145deg, #fff 0%, #f4f9ff 100%);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 17px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 104, 243, .13);
  border-radius: 11px;
  background: var(--blue-tint);
  color: var(--electric-dark);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .04em;
}

.page-content:not(.legal-layout) .section-icon {
  font-size: 17px;
  font-weight: 600;
}

.section-header h2 { color: var(--ink); font-size: clamp(18px, 2.4vw, 21px); font-weight: 760; letter-spacing: -.35px; line-height: 1.25; }
.section h3 { margin: 23px 0 9px; color: var(--ink); font-size: 15px; font-weight: 740; }
.section p { margin-bottom: 13px; color: var(--graphite); font-size: 15px; line-height: 1.75; }
.section p:last-child { margin-bottom: 0; }

.section ul,
.section ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 21px;
  margin: 12px 0 15px;
}

.section li { padding-left: 3px; color: var(--graphite); font-size: 15px; line-height: 1.65; }
.section li::marker { color: var(--electric); }
.section strong { color: var(--ink); font-weight: 680; }
.section a { color: var(--electric-dark); font-weight: 600; }
.section a:hover { color: var(--electric); }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.summary-item { padding: 14px; border: 1px solid rgba(18, 104, 243, .11); border-radius: var(--radius-small); background: rgba(255, 255, 255, .76); }
.summary-item strong,
.summary-item span { display: block; }
.summary-item strong { margin-bottom: 3px; font-size: 13px; }
.summary-item span { color: var(--graphite); font-size: 12px; line-height: 1.45; }

/* Callouts */
.callout { display: flex; gap: 12px; padding: 17px 18px; margin: 18px 0; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.callout-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 850; line-height: 1; }
.callout p { margin: 0; color: inherit; font-size: 14px; }
.callout-info { border: 1px solid rgba(18, 104, 243, .16); background: var(--blue-tint); color: var(--navy-soft); }
.callout-warning { border: 1px solid #f2c38f; background: #fff8ed; color: #71380a; }
.callout-danger { border: 1px solid rgba(217, 48, 37, .2); background: #fff2f1; color: #7b1711; }

/* Delete page supporting components */
.steps-list { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; }
.step-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.step-num { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; border-radius: 50%; background: var(--electric); color: #fff; font-size: 13px; font-weight: 750; }
.step-body strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; font-weight: 680; }
.step-body span { color: var(--graphite); font-size: 13px; line-height: 1.5; }

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 38px 32px;
  margin-top: 34px;
  border-radius: 24px;
  background: var(--gradient-hero);
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.contact-card::after { content: ""; position: absolute; width: 190px; height: 190px; top: -120px; right: -50px; border-radius: 50%; background: rgba(93, 216, 255, .1); }
.contact-card h3,
.contact-card p,
.contact-card .btn { position: relative; z-index: 1; }
.contact-card h3 { margin-bottom: 8px; color: #fff; font-size: 21px; font-weight: 760; letter-spacing: -.35px; }
.contact-card p { margin-bottom: 21px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.contact-card .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-pill); background: #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, .18); color: var(--electric-dark); font-size: 14px; font-weight: 740; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.contact-card .btn:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(0, 0, 0, .24); }

.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 680; vertical-align: middle; }
.chip-danger { background: #fff1f0; color: var(--danger); }
.chip-success { background: #edfff4; color: var(--success); }
.chip-info { background: var(--blue-tint); color: var(--electric-dark); }

/* Footer */
footer { padding: 42px 24px; background: var(--navy); text-align: center; }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; }
.footer-logo { margin-bottom: 17px; }
.footer-brand { color: #fff; font-size: 15px; font-weight: 740; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-bottom: 19px; list-style: none; }
.footer-links a { display: block; padding: 5px 9px; border-radius: 7px; color: rgba(255, 255, 255, .57); font-size: 13px; text-decoration: none; transition: color var(--transition), background var(--transition); }
.footer-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.footer-copy { color: rgba(255, 255, 255, .36); font-size: 12px; }

@media (max-width: 920px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; width: min(100%, 820px); }
  .legal-layout > .toc-card { position: static; max-height: none; margin-bottom: 0; }
  .toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 112px; }
  .nav { padding: 0 14px; }
  .nav-inner { height: auto; min-height: 64px; align-items: stretch; flex-direction: column; gap: 8px; padding: 11px 0 9px; }
  .nav-logo { align-self: center; }
  .nav-logo-mark { width: 31px; height: 31px; border-radius: 9px; }
  .nav-brand { font-size: 16px; }
  .nav-links { width: 100%; justify-content: center; overflow-x: auto; padding-bottom: 2px; }
  .nav-links a { padding: 6px 8px; font-size: 11.5px; white-space: nowrap; }
  .hero { padding: 54px 20px 50px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-meta { margin-top: 20px; }
  .page-content { padding: 34px 14px 64px; }
  .toc-card { padding: 18px; }
  .toc-list { grid-template-columns: 1fr; }
  .legal-document > .section { padding: 22px 19px; border-radius: 17px; }
  .section-header { align-items: flex-start; }
  .section-icon { width: 34px; height: 34px; }
  .summary-strip { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 20px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { background: #fff; }
  .nav, .toc-card, .contact-card, footer, .skip-link { display: none !important; }
  .hero { padding: 24px 0; background: #fff; text-align: left; }
  .hero::before, .hero::after, .hero-badge, .hero-meta { display: none; }
  .hero h1 { color: #000; font-size: 30px; }
  .hero-sub { max-width: none; margin: 0; color: #444; }
  .page-content, .legal-layout { display: block; width: 100%; max-width: none; padding: 0; }
  .legal-document > .section { break-inside: avoid; padding: 18px 0; border: 0; border-radius: 0; box-shadow: none; }
  .section { margin-bottom: 10px; }
}
