/* ===== CSS Custom Properties ===== */
:root {
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --accent: hsl(22.54, 88.72%, 61.76%);
  --light-accent: hsl(31.58, 56.44%, 80.2%);
  --dark-accent: hsl(202.5, 9.09%, 17.25%);
  --heading-font: 'Jost', sans-serif;
  --body-font: 'Poppins', sans-serif;
  --max-width: 1400px;
  --side-padding: 4vw;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-accent);
  background: var(--light-accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 500;
}

/* ===== Header ===== */
.site-header {
  background: var(--light-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--dark-accent);
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s;
}

.header-nav a.active {
  border-bottom: 1px solid var(--dark-accent);
}

.header-nav a:hover {
  opacity: 0.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--dark-accent);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  background: var(--light-accent);
  padding: 1rem var(--side-padding) 1.5rem;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mobile-nav a {
  color: var(--dark-accent);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark-accent);
  color: var(--white);
  padding: 3rem var(--side-padding);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

.footer-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.footer-links {
  margin-bottom: 1.5rem;
  line-height: 2;
}

.footer-links a {
  display: block;
  color: var(--accent);
  font-weight: 300;
  font-size: 0.95rem;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-copyright {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.8;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  z-index: 200;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Legal Page Styles ===== */
.legal-section {
  padding: 4rem var(--side-padding);
  background: var(--light-accent);
  color: var(--dark-accent);
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--dark-accent);
}

.page-title .highlight {
  position: relative;
  display: inline;
  isolation: isolate;
}

.page-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  z-index: -1;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.legal-inner h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.legal-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-inner p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.legal-inner p.section-label {
  font-weight: 500;
  margin-top: 2rem;
}

.legal-inner ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-inner ul li {
  margin-bottom: 0.5rem;
}

.legal-inner a {
  text-decoration: underline;
  color: var(--accent);
}

.legal-inner a:hover {
  opacity: 0.8;
}

/* ===== Section Curved Dividers ===== */
.section-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  margin-top: -2px;
  margin-bottom: -2px;
}

.section-divider--light-to-dark {
  background: var(--light-accent);
}

.section-divider--light-to-dark svg {
  fill: var(--dark-accent);
}

.section-divider--dark-to-light {
  background: var(--dark-accent);
}

.section-divider--dark-to-light svg {
  fill: var(--light-accent);
}

/* ===== Responsive: Tablet (768px) ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .page-title,
  .legal-inner h1 {
    font-size: 1.8rem;
  }

  .legal-section {
    padding: 3rem var(--side-padding);
  }
}

/* ===== Responsive: Mobile (480px) ===== */
@media (max-width: 480px) {
  .page-title,
  .legal-inner h1 {
    font-size: 1.5rem;
  }

  .legal-inner p,
  .legal-inner ul {
    font-size: 0.95rem;
  }

  .legal-section {
    padding: 2rem var(--side-padding);
  }
}
