:root {
  color-scheme: light;
  --ink: #10231d;
  --muted: #5e6f68;
  --paper: #f5f2eb;
  --forest: #103b31;
  --forest-2: #0a2a24;
  --mint: #57d6a3;
  --blue: #7395b8;
  --white: #fffdf8;
  --line: rgba(16, 35, 29, 0.14);
  font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(87, 214, 163, 0.16), transparent 32rem),
    linear-gradient(90deg, rgba(16, 59, 49, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 59, 49, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 72px 72px, 72px 72px, auto;
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--forest); }

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 235, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { border-radius: 12px; box-shadow: 0 10px 24px rgba(16, 59, 49, 0.18); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: 0.08em; text-transform: uppercase; }
.brand small { color: var(--muted); }

.back-link {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.legal-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.eyebrow {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; }
h1 { max-width: 780px; margin: 0.75rem 0 1rem; font-size: clamp(2.4rem, 7vw, 5.3rem); letter-spacing: -0.05em; }
h2 { margin-top: 2.8rem; font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { margin-top: 2rem; font-size: 1.15rem; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.updated { color: var(--muted); font-size: 0.92rem; }

.notice, .contact-card {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(16, 59, 49, 0.18);
  border-left: 4px solid var(--mint);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
}

.contact-card { border-left-color: var(--blue); }
.contact-card p:last-child, .notice p:last-child { margin-bottom: 0; }

.legal-footer {
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.6rem; }

@media (max-width: 620px) {
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-shell { width: min(100% - 1.25rem, 920px); padding-top: 2.7rem; }
  h1 { font-size: 2.8rem; }
}
