* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f7f8;
  --card: #ffffff;
  --text: #172026;
  --muted: #66727a;
  --line: #e5e9ec;
  --accent: #0d6b68;
  --accent-dark: #084c4a;
  --soft: #edf7f6;
  --shadow: 0 18px 50px rgba(22, 38, 45, 0.08);
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

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

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

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 13px;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent);
}

.hero {
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 80% 20%, rgba(13, 107, 104, 0.11), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f3f8f7 100%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 13px;
}

h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.updated {
  display: inline-block;
  margin-top: 25px;
  padding: 8px 13px;
  border: 1px solid #d8e8e6;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.content-section {
  padding: 55px 0 80px;
}

.layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 98px;
}

.toc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(22, 38, 45, 0.045);
}

.toc-card h2 {
  font-size: 14px;
  margin-bottom: 12px;
}

.toc-card a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  transition: 0.2s ease;
}

.toc-card a:hover,
.toc-card a.active {
  color: var(--accent);
  transform: translateX(2px);
}

.terms-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(25px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.terms-card section {
  padding: 0 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.terms-card section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-number {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
}

.terms-card h2 {
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.terms-card p {
  color: #4f5b62;
  font-size: 15px;
  margin-bottom: 14px;
}

.terms-card p:last-child {
  margin-bottom: 0;
}

.terms-card ul {
  margin: 12px 0 0 20px;
  color: #4f5b62;
}

.terms-card li {
  padding-left: 5px;
  margin-bottom: 8px;
}

.contact-box,
.acceptance-box {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #dcebea;
  border-radius: 14px;
  background: var(--soft);
}

.contact-box div {
  margin: 5px 0;
  color: #46575b;
  font-size: 14px;
}

.placeholder {
  color: #9a5b24;
}

.acceptance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.acceptance-box strong {
  color: var(--accent-dark);
}

.acceptance-box span {
  color: var(--muted);
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner a {
  color: var(--accent);
  font-weight: 700;
}

.top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
  box-shadow: 0 10px 25px rgba(13, 107, 104, 0.25);
}

.top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

  .toc {
    position: static;
  }

  .toc-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 15px;
  }

  .toc-card h2 {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 65px 0 50px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 64px;
  }

  .back-link {
    font-size: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    padding: 52px 0 42px;
  }

  .intro {
    font-size: 16px;
  }

  .content-section {
    padding: 28px 0 50px;
  }

  .terms-card {
    border-radius: 17px;
    padding: 25px 20px;
  }

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

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