:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d9e1e7;
  --primary: #155e75;
  --primary-dark: #0e4658;
  --primary-soft: #e7f5f8;
  --navy: #062d4f;
  --gold: #f3a712;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

a { color: var(--primary-dark); }
a:hover { color: var(--primary); }
a:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 750;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #dce5ea;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(6, 45, 79, 0.12);
}

.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.75rem; }

.header-inner nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.header-inner nav a,
.site-footer nav a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.legal-shell {
  width: min(940px, calc(100% - 2rem));
  margin: 2.4rem auto;
}

.home-shell {
  width: min(860px, calc(100% - 2rem));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 2rem) 0;
  display: grid;
  align-content: center;
}

.home-hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: #9a6400;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.15em;
}

.hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.55rem, 6vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 720px;
  margin: 0.7rem auto 0;
  color: #334155;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.45;
}

.hero-visual {
  max-width: 720px;
  margin: clamp(1rem, 2.4vh, 1.45rem) auto 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #cbd9e2;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 54%;
  box-shadow: 0 16px 42px rgba(6, 45, 79, 0.15);
}

.home-contact {
  margin: clamp(1.15rem, 2.5vh, 1.6rem) auto 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.home-contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.3;
}

.home-contact p { margin: 0.35rem 0 0.05rem; line-height: 1.35; }
.home-contact a { font-weight: 750; }

.legal-document {
  padding: clamp(1.25rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  line-height: 1.28;
  scroll-margin-top: 6rem;
}

.legal-document h1 {
  margin: 0 0 1.2rem;
  color: var(--primary-dark);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.legal-document h2 {
  margin: 2.4rem 0 0.85rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
  color: #173642;
  font-size: clamp(1.22rem, 2.5vw, 1.55rem);
}

.legal-document h3 { margin: 1.7rem 0 0.65rem; font-size: 1.08rem; }
.legal-document p { margin: 0.75rem 0; }
.legal-document ul, .legal-document ol { padding-left: 1.5rem; }
.legal-document li { margin: 0.42rem 0; }
.legal-document hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.legal-document code { padding: 0.12rem 0.35rem; border-radius: 0.35rem; background: #eef2f5; font-size: 0.92em; }

.legal-document table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-document th,
.legal-document td {
  padding: 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-document th { background: var(--primary-soft); color: var(--primary-dark); }

.site-footer {
  min-height: 112px;
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong,
.site-footer > div > a { display: block; }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 0.8rem 0; }
  .header-inner nav { width: 100%; justify-content: space-between; }
  .header-inner nav a { font-size: 0.9rem; }
  .legal-shell { width: min(100% - 1rem, 940px); margin: 0.8rem auto 1.5rem; }
  .legal-document { border-radius: 13px; }
  .legal-document table { display: block; overflow-x: auto; }
  .home-shell {
    width: min(100% - 1.25rem, 860px);
    min-height: auto;
    margin: 0 auto;
    padding: 1.6rem 0 2rem;
  }
  .hero-copy h1 { font-size: clamp(2.3rem, 13vw, 3.45rem); }
  .hero-lead { margin-top: 0.55rem; line-height: 1.42; }
  .hero-visual { margin-top: 1rem; }
  .hero-visual img { border-radius: 14px; }
  .site-footer { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; font-size: 11pt; }
  .legal-shell, .home-shell { width: 100%; margin: 0; }
  .legal-document { padding: 0; border: 0; box-shadow: none; }
  .hero-visual img { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
