:root {
  --ink: #111214;
  --muted: #626870;
  --soft: #8b94a3;
  --line: #e1e3e7;
  --line-strong: #cfd4da;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --blue: #5e7cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(156, 171, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 58%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.container,
.terms-container,
.privacy-container {
  width: min(920px, calc(100% - 48px));
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
}

.terms-hero,
.privacy-hero {
  padding: 132px 0 52px;
  color: var(--ink);
  text-align: center;
  background: transparent;
}

.terms-hero h1,
.privacy-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.terms-hero p,
.privacy-hero p {
  max-width: 640px;
  margin: 24px auto 0;
  color: #7d828a;
  font-size: 18px;
  line-height: 1.55;
  opacity: 1;
}

.terms-content,
.privacy-content {
  padding: 24px 0 112px;
  background: transparent;
}

.terms-section,
.privacy-section {
  margin: 0;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.terms-section:first-of-type,
.privacy-section:first-of-type {
  border-top: 1px solid var(--line);
}

.terms-section h2,
.privacy-section h2 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.25;
}

.terms-section h3,
.privacy-section h3 {
  margin: 34px 0 12px;
  color: #24272c;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.terms-section h4,
.privacy-section h4 {
  margin: 24px 0 10px;
  color: #343941;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.terms-section p,
.privacy-section p,
.terms-section li,
.privacy-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.terms-section p,
.privacy-section p {
  margin: 0 0 16px;
}

.terms-section ul,
.terms-section ol,
.privacy-section ul,
.privacy-section ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.terms-section li,
.privacy-section li {
  margin-bottom: 8px;
}

.terms-section strong,
.privacy-section strong {
  color: #24272c;
  font-weight: 650;
}

.section-number {
  min-width: 34px;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
}

.highlight-box,
.update-date,
.contact-info {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.highlight-box p,
.update-date p,
.contact-info p {
  color: #343941;
}

.back-link,
.contact-info a,
.privacy-table a {
  color: #314fcf;
  text-decoration: none;
}

.back-link:hover,
.contact-info a:hover,
.privacy-table a:hover {
  color: #1f37a8;
  text-decoration: underline;
}

.table-container {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
}

.privacy-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.privacy-table th,
.privacy-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.privacy-table th {
  background: var(--surface-alt);
  color: #343941;
  font-weight: 650;
}

.privacy-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .container,
  .terms-container,
  .privacy-container {
    width: min(100% - 36px, 920px);
  }

  .terms-hero,
  .privacy-hero {
    padding: 92px 0 38px;
  }

  .terms-hero h1,
  .privacy-hero h1 {
    font-size: 42px;
  }

  .terms-hero p,
  .privacy-hero p {
    font-size: 16px;
  }

  .terms-content,
  .privacy-content {
    padding-bottom: 78px;
  }

  .terms-section,
  .privacy-section {
    padding: 34px 0;
  }

  .terms-section h2,
  .privacy-section h2 {
    font-size: 24px;
  }

  .terms-section p,
  .privacy-section p,
  .terms-section li,
  .privacy-section li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container,
  .terms-container,
  .privacy-container {
    width: min(100% - 28px, 920px);
  }

  .terms-hero h1,
  .privacy-hero h1 {
    font-size: 36px;
  }

  .terms-section h2,
  .privacy-section h2 {
    display: block;
    font-size: 22px;
  }

  .section-number {
    display: block;
    margin-bottom: 8px;
  }

  .highlight-box,
  .update-date,
  .contact-info {
    padding: 18px;
  }
}
