@import url("fonts.css");
@import url("tokens.css");

:root {
  --pastel-canvas: #000000;
  --pastel-white: #ffffff;
  --pastel-muted: rgba(255, 255, 255, 0.62);
  --pastel-yellow: #f8f14e;
  --pastel-magenta: #d11f7f;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--pastel-white);
  background: var(--pastel-canvas);
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

a {
  color: var(--pastel-yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  min-width: 0;
}

.legal-shell a {
  overflow-wrap: anywhere;
}

.legal-shell code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--pastel-muted);
}

.legal-back:hover {
  color: var(--pastel-white);
}

.legal-shell h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 2.5rem;
  color: var(--pastel-muted);
  font-size: 0.9375rem;
}

.legal-shell h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.legal-shell h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--pastel-white);
}

.legal-shell p,
.legal-shell li {
  color: var(--pastel-muted);
}

.legal-shell ul:not(.article-word-list) {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-shell ul.article-word-list,
.legal-shell ol.article-framework {
  margin: 0;
  padding-left: 0;
}

.legal-shell li + li {
  margin-top: 0.35rem;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--pastel-muted);
}

.legal-footer a + a::before {
  content: " · ";
  color: var(--pastel-muted);
  text-decoration: none;
}

.support-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--pastel-white);
  color: #000000;
  border-radius: 24px;
  min-width: 0;
}

.support-card h2 {
  margin-top: 0;
  color: #000000;
}

.support-card p,
.support-card a {
  color: rgba(0, 0, 0, 0.65);
}

.support-card a {
  color: #000000;
  font-weight: 600;
}

.support-topics {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.support-topic {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  min-width: 0;
}

.support-topic strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--pastel-white);
  margin-bottom: 0.35rem;
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .legal-shell {
    padding: 2rem 1rem 3rem;
  }

  .support-card {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .legal-footer a {
    display: inline;
  }
}
