/* Noodles VPN — Policy page theme */
:root {
  --color-bg: #ffffff;
  --color-surface: #fafafa;
  --color-text: #2f333a;
  --color-text-muted: #5c636e;
  --color-accent: #feb21c;
  --color-accent-hover: #e5a010;
  --color-border: #e8eaed;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-soft: 0 1px 3px rgba(47, 51, 58, 0.06);
  --shadow-card: 0 4px 24px rgba(47, 51, 58, 0.08);
  --content-max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-hover);
  text-decoration-color: rgba(254, 178, 28, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  opacity: 0.92;
}

.brand__logo-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.brand__tag {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.header-accent {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    #ffd05c 50%,
    var(--color-accent) 100%
  );
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem 2.75rem;
}

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

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.hero__intro {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 58ch;
}

/* Main layout */
.main {
  padding: 2rem 1.5rem 4rem;
}

.main__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* TOC */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
}

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

.toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.35rem 0;
}

.toc a {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--color-accent-hover);
}

/* Sections */
.section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 5rem;
}

.section:last-of-type {
  margin-bottom: 0;
}

.section__title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.subsection {
  margin-bottom: 1.75rem;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection__title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.subsection p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

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

.list-heading {
  margin: 1rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

ul.content-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

ul.content-list li {
  margin: 0.35rem 0;
}

ul.content-list:last-child {
  margin-bottom: 0;
}

.note-card {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.note-card strong {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand__tag {
    display: none;
  }

  .hero {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }
}
