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

:root {
  --bg: #000;
  --text: rgba(255, 255, 255, 0.85);
  --text-bright: #fff;
  --text-muted: rgba(255, 255, 255, 0.4);
  --font-size: calc(0.875em + 0.3vw);
  --font-size-small: 75%;
  --font-size-large: 130%;
  --line-height: calc(1.35em + 0.6vw);
  --spacing: 1em;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif;
  font-size: var(--font-size);
  font-weight: 400;
  line-height: var(--line-height);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Header */

header {
  padding: 1.6em var(--spacing);
}

header a {
  font-size: var(--font-size-small);
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-thickness: 0.085em;
  text-underline-offset: 0.15em;
  letter-spacing: normal;
}

header a:hover {
  color: var(--text-bright);
}

/* Main */

main {
  padding: 3em var(--spacing) 7em;
  max-width: calc(49ch + 2 * var(--spacing));
}

/* Policies index */

.policies-index h1 {
  font-size: var(--font-size-large);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 1.8em;
}

.policy-links {
  display: flex;
  flex-direction: column;
}

.policy-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--text-bright);
  gap: 1em;
}

.policy-links .policy-link:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-link-title {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.085em;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.policy-link:hover .policy-link-title {
  text-decoration-color: var(--text-bright);
}

.policy-link-updated {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: normal;
  font-weight: 400;
}

/* Policy content */

.policy-content h1 {
  font-size: var(--font-size-large);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 0.3em;
}

.policy-content .last-updated {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 3em;
}

.policy-content h2 {
  font-size: var(--font-size-large);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

.policy-content h3 {
  font-size: 100%;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.policy-content p {
  margin-bottom: 0.9em;
}

.policy-content ul {
  margin: 0.4em 0 0.9em 1.4em;
}

.policy-content ul li {
  margin-bottom: 0.2em;
}

.policy-content a {
  color: var(--text-bright);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.085em;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  letter-spacing: normal;
}

.policy-content a:hover {
  text-decoration-color: var(--text-bright);
}

.policy-content strong {
  font-weight: 700;
  color: var(--text-bright);
}

.policy-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3em 0;
}

.policy-content .notice-box {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.6em 1em;
  margin: 1em 0;
  font-size: var(--font-size-small);
  color: var(--text-muted);
  letter-spacing: normal;
}

/* Footer */

footer {
  padding: 0 var(--spacing) 3em;
  font-size: var(--font-size-small);
  color: var(--text-muted);
  letter-spacing: normal;
}

/* Responsive */

@media (min-width: 64em) {
  main {
    padding-left: calc(var(--spacing) + 2.8ch);
    padding-right: calc(var(--spacing) + 2.8ch);
  }

  footer {
    padding-left: calc(var(--spacing) + 2.8ch);
  }
}
