:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --surface-muted: #f3eee6;
  --border: #e6dfd2;
  --text: #0b0b10;
  --text-muted: #6b6b7a;
  --primary: #52796f;
  --primary-dark: #3e5c54;
  --brand: #84a98c;
  --accent: #e0c097;
  --danger: #c56c6c;
  --soft-red: #ffe1e1;
  --error-strong: #e05252;
  --warn-600: #d97706;
  --warn-500: #f59e0b;
  --orange-500: #f97316;
  --info-600: #2563eb;
  --violet-500: #8b5cf6;
  --teal-500: #14b8a6;
  --success-500: #22c55e;
  --pink-600: #db2777;
  --red-600: #dc2626;
  --cyan-500: #06b6d4;
  --shadow-soft: 0 26px 56px -36px rgba(23, 53, 46, 0.44);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(132, 169, 140, 0.22), transparent 33%),
    radial-gradient(circle at 86% 0%, rgba(156, 178, 187, 0.25), transparent 37%),
    linear-gradient(180deg, #fefcf8 0%, #f6f2eb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 24;
  isolation: isolate;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  border: 1px solid rgba(132, 169, 140, 0.46);
  background: linear-gradient(120deg, rgba(31, 63, 55, 0.94), rgba(82, 121, 111, 0.94));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.brand-logo {
  width: min(320px, 32vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  color: rgba(253, 251, 247, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  color: var(--surface);
  background: rgba(156, 178, 187, 0.3);
}

.site-nav .nav-pill {
  color: var(--primary-dark);
  background: var(--accent);
}

.site-nav .nav-pill:hover {
  background: #f0d6b5;
}

.legal-main {
  max-width: 1020px;
  margin: 0 auto;
  padding: 30px 18px 56px;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 22px 42px -34px rgba(31, 63, 55, 0.34);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  font-family: "DM Serif Display", "Times New Roman", serif;
}

h2 {
  margin-top: 22px;
  font-size: 1.18rem;
}

.legal-meta {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-card p {
  margin: 12px 0 0;
  color: #23232f;
  line-height: 1.7;
}

.legal-card ul,
.legal-card ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #23232f;
  line-height: 1.72;
}

.notice {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(82, 121, 111, 0.28);
  background: rgba(214, 226, 216, 0.45);
  padding: 12px 14px;
  color: #1f3f37;
  font-size: 0.9rem;
}

.notice.is-warn {
  border-color: rgba(197, 108, 108, 0.34);
  background: rgba(255, 225, 225, 0.5);
  color: #7d3636;
}

.contact-box {
  margin-top: 14px;
  border: 1px solid rgba(82, 121, 111, 0.28);
  border-radius: 14px;
  background: rgba(243, 238, 230, 0.62);
  padding: 12px 14px;
}

.contact-box strong {
  display: block;
  font-size: 0.9rem;
}

.contact-box a {
  color: var(--primary-dark);
  font-weight: 700;
}

.legal-footer {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 18px 28px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.legal-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.legal-footer-links a {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(82, 121, 111, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
    padding: 10px 12px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .brand-logo {
    width: min(220px, 60vw);
    height: auto;
    max-height: 54px;
  }

  .site-nav {
    width: 100%;
    gap: 6px;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 8px 11px;
  }

  .legal-card {
    padding: 20px 15px;
  }
}
