:root {
  --bg: #ffffff;
  --soft: #f7faf8;
  --soft-2: #f2f8f4;
  --text: #222222;
  --muted: #5f6b66;
  --muted-2: #7b8593;
  --line: #e3e8e4;
  --line-strong: #d6ded9;
  --green: #2ba150;
  --green-dark: #1f7a3e;
  --red: #b9564b;
  --red-soft: #fff8f7;
  --red-line: #ecd3cf;
  --shadow: 0 12px 32px rgba(32, 48, 39, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 232, 228, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(43, 161, 80, 0.1);
}

.legal-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.legal-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 680;
}

.legal-nav a:hover,
.legal-nav a.active,
.footer-links a:hover {
  color: var(--green-dark);
}

/* Hero */

.hero {
  padding: 78px 0 64px;
  border-bottom: 1px solid var(--line);
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(48px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 760;
}

.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #303846;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  font-weight: 540;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
}

.meta-card {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.meta-card:last-child {
  border-right: 0;
}

.meta-card span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-card strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 720;
}

.meta-card strong a {
  color: var(--text);
  text-decoration: none;
}

.meta-card strong a:hover {
  color: var(--green-dark);
}

.summary-box {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid #c9e8d2;
  border-radius: 16px;
  background: var(--soft);
}

.summary-kicker {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.summary-grid > div {
  padding: 18px;
  border: 1px solid rgba(201, 232, 210, 0.9);
  border-radius: 12px;
  background: #fff;
}

.summary-grid strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 760;
}

.summary-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Main legal layout */

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 86px;
}

.toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.toc-title {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.toc li {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--green-dark);
}

.legal-document {
  min-width: 0;
}

.legal-section {
  padding: 0 0 54px;
  margin: 0 0 54px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.section-number {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-section h2 {
  margin: 0 0 24px;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 730;
}

.legal-section h3 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 730;
}

.legal-section p,
.legal-section li {
  color: #39413d;
  font-size: 16px;
  line-height: 1.75;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section ol + p,
.legal-section .notice + p {
  margin-top: 18px;
}

.legal-section ul,
.legal-section ol {
  margin: 18px 0 0;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 9px;
}

.check-list,
.cross-list {
  display: grid;
  gap: 10px;
  padding: 0 !important;
  list-style: none;
}

.check-list li,
.cross-list li {
  position: relative;
  margin: 0 !important;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.check-list li::before,
.cross-list li::before {
  position: absolute;
  left: 16px;
  top: 13px;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 850;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
}

.cross-list li::before {
  content: "×";
  color: var(--red);
  font-size: 20px;
  line-height: 1.3;
}

.notice {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid #c9e8d2;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: var(--soft);
  color: #303846;
  font-size: 15px;
  line-height: 1.6;
}

.notice strong {
  color: var(--green-dark);
}

.notice-danger {
  border-color: var(--red-line);
  border-left-color: var(--red);
  background: var(--red-soft);
}

.notice-danger strong {
  color: #9d483f;
}

.contact-section {
  border-bottom: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #c9e8d2;
  border-radius: 14px;
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.contact-card:hover {
  border-color: #a9dcb8;
  color: var(--text);
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.contact-card strong {
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 760;
}

.small-note {
  margin-top: 16px !important;
  color: var(--muted-2) !important;
  font-size: 13px !important;
}

/* Footer */

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
}

.footer-copy {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc {
    position: static;
    max-height: none;
  }

  .toc ol {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 26px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .legal-nav {
    gap: 14px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .meta-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .meta-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meta-card:last-child {
    border-bottom: 0;
  }

  .legal-layout {
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .legal-section {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1080px);
  }

  html {
    scroll-padding-top: 130px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .summary-box {
    padding: 20px;
  }

  .toc {
    padding: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    font-size: 32px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.7;
  }

  .check-list li,
  .cross-list li {
    padding-right: 14px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  .shell {
    width: 100%;
  }

  .hero {
    padding: 0 0 32px;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-section {
    break-inside: avoid;
  }

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


/* Legal home */

.legal-home {
  padding: 72px 0 92px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.document-card {
  display: block;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.document-card:hover {
  transform: translateY(-2px);
  border-color: #a9dcb8;
  color: var(--text);
  box-shadow: 0 16px 38px rgba(32, 48, 39, 0.09);
}

.document-card .document-label {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-card h2 {
  margin: 18px 0 10px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 740;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.document-card .document-arrow {
  display: inline-block;
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 760;
}

.support-strip {
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid #c9e8d2;
  border-radius: 16px;
  background: var(--soft);
}

.support-strip p {
  margin: 0;
  color: #39413d;
  font-size: 15px;
  line-height: 1.7;
}

.support-strip p + p {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .document-grid {
    grid-template-columns: 1fr;
  }

  .legal-home {
    padding: 48px 0 64px;
  }
}
