/* =========================================================
   BLUELAND STUDIO — Shared styles for legal pages
   (Privacy, Terms, Refunds). Matches the homepage design.
   ========================================================= */
:root {
  --navy-deep:     #081524;
  --navy-deep-2:   #04101D;
  --navy-soft:     #0d1c2f;
  --brand-blue:    #1467DC;
  --brand-blue-2:  #084EAD;
  --cool-gray:     #748191;
  --light-gray:    #CBCED2;
  --off-white:     #F9F8F7;
  --paper:         #FBFAF8;
  --white:         #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--navy-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============== NAV (matches homepage) ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(8,21,36,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mark {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  color: var(--white);
  text-decoration: none;
}
.nav-mark .type {
  font-weight: 500; font-size: 10px; color: var(--brand-blue);
  letter-spacing: .3em; margin-left: 4px; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 14px; font-weight: 500;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--white); color: var(--navy-deep) !important;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--brand-blue); color: var(--white) !important; transform: translateY(-1px); }

/* ============== LEGAL PAGE LAYOUT ============== */
.legal-page {
  padding: 140px 0 100px;
  min-height: calc(100vh - 360px);
}
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.legal-header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(8,21,36,.1);
}
.legal-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legal-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.legal-title .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue);
}
.legal-updated {
  font-size: 14px;
  color: var(--cool-gray);
}

/* ============== ARTICLE CONTENT ============== */
.legal-content {
  font-size: 16px;
  color: rgba(8,21,36,.82);
  line-height: 1.7;
}
.legal-content p {
  margin-bottom: 18px;
}
.legal-content h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--navy-deep);
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy-deep);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.legal-content a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.legal-content a:hover {
  color: var(--brand-blue-2);
}
.legal-content strong {
  color: var(--navy-deep);
  font-weight: 600;
}
.legal-content em {
  font-style: italic;
}
.legal-content code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .92em;
  background: rgba(20,103,220,.08);
  color: var(--navy-deep);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Contact callout box */
.legal-contact {
  display: block;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid rgba(8,21,36,.08);
  border-left: 3px solid var(--brand-blue);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(8,21,36,.04);
}
.legal-contact strong {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--navy-deep);
}

/* ============== FOOTER (matches homepage) ============== */
footer {
  background: var(--navy-deep-2);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: var(--white);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-mark { font-size: 22px; margin-bottom: 14px; display: inline-block; }
.footer-tag {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  line-height: 1.55;
  max-width: 28ch;
}
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--brand-blue); }
.footer-col li.muted { color: rgba(255,255,255,.55); font-size: 14px; padding: 5px 0; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-bottom a:hover { color: var(--brand-blue); }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .nav { padding: 14px 0; }
  .nav-inner { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .legal-page { padding: 110px 0 64px; }
  .legal-container { padding: 0 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 22px; }
  .footer-bottom { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .legal-content h2 { font-size: 22px; }
}
