:root {
  --brand-darkest: #3d6b58;
  --brand-mid: #5a8a76;
  --brand: #6b9e8a;
  --brand-light: #c8ddd7;
  --brand-pale: #eaf2ef;
  --bg: #f7f4ef;
  --surface: #fdfcfa;
  --surface-soft: #fbf8f2;
  --line: #e6ded3;
  --text: #1d2926;
  --text-soft: #5f766f;
  --accent: #2e6b8a;
  --amber: #c08b3a;
  --shadow: 0 24px 58px rgba(30, 42, 40, 0.12), 0 3px 10px rgba(30, 42, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Figtree, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(80% 64% at 84% -12%, rgba(200, 221, 215, 0.42) 0%, rgba(200, 221, 215, 0) 58%),
    radial-gradient(65% 52% at -10% 14%, rgba(232, 227, 219, 0.74) 0%, rgba(232, 227, 219, 0) 62%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 42%, #f2f6f2 100%);
}

::selection {
  background: rgba(107, 158, 138, 0.24);
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 107, 138, 0.16);
  border-radius: 8px;
}

.legal-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.legal-card {
  overflow: hidden;
  border: 1px solid rgba(226, 218, 207, 0.92);
  border-radius: 32px;
  background: rgba(253, 252, 250, 0.94);
  box-shadow: var(--shadow);
}

.legal-hero {
  padding: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(234, 242, 239, 0.92), rgba(253, 252, 250, 0.88));
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-icon {
  display: flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 4;
}

.brand-mark circle {
  fill: var(--brand-darkest);
}

.brand-name {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--brand-darkest);
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-darkest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(16px, 1.7vw, 17.5px);
  line-height: 1.58;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px clamp(22px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(253, 252, 250, 0.76);
}

.legal-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--brand-darkest);
  font-size: 14px;
}

.legal-nav a[aria-current="page"] {
  border-color: rgba(61, 107, 88, 0.22);
  background: var(--brand-pale);
  color: var(--text);
}

.legal-content {
  padding: clamp(26px, 5vw, 48px);
}

section + section {
  margin-top: 30px;
}

h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

p,
li {
  color: var(--text-soft);
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.58;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.notice {
  margin: 24px 0 0;
  border: 1px solid rgba(61, 107, 88, 0.16);
  border-radius: 20px;
  padding: 18px;
  background: rgba(232, 227, 219, 0.36);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid rgba(46, 107, 138, 0.14);
  border-radius: 20px;
  padding: 18px;
  background: rgba(217, 232, 239, 0.36);
}

.contact-box p {
  margin: 0;
}

.legal-footer {
  padding: 22px clamp(22px, 5vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 13px;
}

.legal-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .legal-shell {
    padding: 16px 10px 32px;
  }

  .legal-card {
    border-radius: 24px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .legal-nav a {
    width: 100%;
    justify-content: center;
  }
}
