/* ========================================
   Wallpapers for A20E — Privacy Policy
   Font: Literata (Google Fonts)
   ======================================== */

:root {
  --color-bg: #eef1f6;
  --color-bg-alt: #ffffff;
  --color-text: #141824;
  --color-text-muted: #4b5568;
  --color-accent: #4338ca;
  --color-accent-light: #6366f1;
  --color-accent-soft: rgba(67, 56, 202, 0.08);
  --color-border: #d8dee9;
  --color-header-bg: #1e1b4b;

  --font-main: "Literata", Georgia, "Times New Roman", serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-sm: 0 1px 3px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 4px 20px rgba(30, 27, 75, 0.08);

  --space-xs: clamp(0.5rem, 1.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 2vw, 1rem);
  --space-md: clamp(1rem, 3vw, 1.5rem);
  --space-lg: clamp(1.5rem, 4vw, 2.5rem);
  --space-xl: clamp(2rem, 5vw, 3.5rem);

  --container-max: 44rem;
  --header-max: 72rem;

  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-h1: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  --text-h2: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --text-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);

  --line-height: 1.7;
  --line-height-heading: 1.25;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-light);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.site-header {
  background-color: var(--color-header-bg);
  color: #e8eaf6;
  padding-block: var(--space-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--header-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.site-logo {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 700;
  color: #e8eaf6;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-logo:hover {
  color: #ffffff;
}

.site-badge {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.35em 0.85em;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  white-space: nowrap;
}

.site-main {
  padding-block: var(--space-lg);
}

.policy {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--color-border);
}

.policy__header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.policy__title {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-text);
}

.policy__intro {
  margin: 0;
  color: var(--color-text-muted);
}

.policy__toc {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.policy__toc-title {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-h3);
  font-weight: 600;
}

.policy__toc-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4em;
}

.policy__toc-list a {
  font-size: var(--text-sm);
  word-break: break-word;
}

.policy__section {
  margin-bottom: var(--space-lg);
  scroll-margin-top: 5rem;
}

.policy__section:last-child {
  margin-bottom: 0;
}

.policy__section h2 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-accent);
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--color-accent-soft);
}

.policy__section p {
  margin: 0 0 var(--space-sm);
}

.policy__section p:last-child {
  margin-bottom: 0;
}

.policy__section ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
}

.policy__section li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.policy__section li:last-child {
  margin-bottom: 0;
}

.policy__section strong {
  font-weight: 600;
  color: var(--color-text);
}

.policy__section--contact {
  padding: var(--space-md);
  background-color: var(--color-accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.policy__section--contact h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.policy__section--contact a {
  font-weight: 600;
  word-break: break-all;
}

@media (min-width: 768px) {
  .policy__toc-list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .site-main {
    padding-block: var(--space-xl);
  }

  .policy {
    padding: 2.75rem 3rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-max: 48rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --container-max: 52rem;
  }
}

@media (max-width: 359px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-badge {
    align-self: flex-start;
  }

  .policy {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .policy__toc-list,
  .policy__section ul {
    padding-left: 1rem;
  }
}
