:root {
  --primary: #00ccf9;
  --primary-dark: #00a8cc;
  --primary-light: #e6f9fe;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --bg: #ffffff;
  --bg-alt: #f8fafb;
  --border: #e8ecf0;
  --max-width: 760px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--text);
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary-dark);
  background: var(--primary-light);
  text-decoration: none;
}

/* Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 60%);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero__meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-hero__meta strong {
  color: var(--text);
}

/* Layout */
.page-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Table of contents */
.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.toc a:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-left-color: var(--primary);
  text-decoration: none;
}

@media (max-width: 860px) {
  .toc {
    position: static;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
  }
}

/* Content */
.legal-content {
  max-width: var(--max-width);
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  letter-spacing: -0.02em;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--text);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px;
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content li > ul,
.legal-content li > ol {
  margin-top: 6px;
  margin-bottom: 0;
}

.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}

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

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--primary-dark);
}

/* Home page */
.home-hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(160deg, var(--primary-light) 0%, #fff 50%);
}

.home-hero__inner {
  max-width: 560px;
}

.home-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.home-hero h1 span {
  color: var(--primary);
}

.home-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
