:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: #ffffffde;
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: #535bf2;
  border-bottom-color: currentColor;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.terms-body,
.privacy {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 3rem);
  padding-left: max(clamp(1rem, 5vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 5vw, 3rem), env(safe-area-inset-right));
  padding-bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.terms-body .txt-cont,
.privacy {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.65;
}

.terms-body h1,
.privacy h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-align: center;
}

.terms-body h2,
.privacy h2 {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: inherit;
  scroll-margin-top: 1rem;
}

.terms-body p,
.privacy p {
  margin: 0 0 1rem;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  color: inherit;
  opacity: 0.95;
}

.terms-body p:last-of-type,
.privacy p:last-of-type {
  margin-bottom: 0;
}

.terms-body ul,
.terms-body ol,
.privacy ul,
.privacy ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

@media (min-width: 768px) {
  .terms-body ul,
  .terms-body ol,
  .privacy ul,
  .privacy ol {
    padding-left: 1.5rem;
  }
}

.terms-body li,
.privacy li {
  margin-bottom: 0.35rem;
  font-size: inherit;
}

.privacy ol {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.terms-body .txt-cont > p:first-of-type,
.privacy > p:first-of-type {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  opacity: 0.85;
  text-align: center;
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.privacy table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
}

.privacy table th,
.privacy table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .privacy table th,
  .privacy table td {
    padding: 0.65rem 0.75rem;
  }
}

.privacy table th {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

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

.privacy table a {
  word-break: break-all;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #fff;
  }

  a:hover {
    color: #747bff;
  }

  .table-wrapper {
    border-color: #00000014;
    background: rgba(0, 0, 0, 0.02);
  }

  .privacy table th,
  .privacy table td {
    border-bottom-color: #0000000f;
  }

  .privacy table th {
    background: rgba(0, 0, 0, 0.04);
  }

  .footer {
    border-top-color: #00000014;
  }
}
