/* =========================================================
   SEBAYTE SITEMAP & PRIVACY PAGES
   Shared child-friendly styles for informational pages.
========================================================= */


/* =========================================================
   1. DESIGN VARIABLES
========================================================= */

:root {
  /* Brand colors */
  --legal-red: #ed1c24;
  --legal-green: #14ad00;
  --legal-purple: #40346f;
  --legal-bright-purple: #5c1df2;
  --legal-yellow: #ffe66d;
  --legal-orange: #ffae3d;
  --legal-blue: #33b8ff;
  --legal-cream: #fffaf0;
  --legal-white: #ffffff;
  --legal-dark: #241534;

  /* Shadows */
  --legal-shadow: 0 18px 45px rgba(64, 52, 111, 0.16);
  --legal-shadow-hover: 0 24px 55px rgba(64, 52, 111, 0.22);

  /* Rounded corners */
  --legal-radius-large: 32px;
  --legal-radius-small: 20px;

  /* Animation easing */
  --legal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   2. GLOBAL PAGE SETTINGS
========================================================= */

/* ---------- Universal box sizing ---------- */

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


/* ---------- Smooth page scrolling ---------- */

html {
  scroll-behavior: smooth;
}


/* ---------- Main legal-page body ---------- */

body.legal-page {
  margin: 0;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 8% 8%,
      rgb(255 230 109 / 55%) 0 7rem,
      transparent 7.1rem
    ),
    radial-gradient(
      circle at 93% 18%,
      rgb(51 184 255 / 20%) 0 8rem,
      transparent 8.1rem
    ),
    linear-gradient(135deg, #fffaf0 0%, #fff5ce 100%);

  color: var(--legal-dark);
  font-family: "metro", sans-serif;
  line-height: 1.6;
}


/* ---------- Responsive images ---------- */

.legal-page img {
  max-width: 100%;
}


/* ---------- Default legal-page links ---------- */

.legal-page a {
  color: inherit;
}


/* =========================================================
   3. ACCESSIBLE SKIP LINK
========================================================= */

/* Hidden until keyboard-focused. */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20000;

  padding: 0.75rem 1rem;

  color: white;
  background: var(--legal-purple);
  border-radius: 999px;

  font-weight: 800;
  text-decoration: none;

  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}


/* =========================================================
   4. HEADER & NAVIGATION
========================================================= */

/* ---------- Header container ---------- */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);

  width: 100%;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);

  position: relative;
  z-index: 1000;

  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid rgb(64 52 111 / 12%);
  box-shadow: 0 8px 24px rgb(64 52 111 / 8%);
  backdrop-filter: blur(8px);
}


/* ---------- Logo link ---------- */

.legal-logo {
  flex: 0 0 auto;
}


/* ---------- Logo image ---------- */

.legal-logo img {
  display: block;
  width: clamp(12rem, 18vw, 16rem);
  height: auto;

  transition:
    transform 280ms var(--legal-ease),
    filter 280ms var(--legal-ease);
}

.legal-logo img:hover {
  transform: translateY(-3px) rotate(-2deg) scale(1.03);
  filter: drop-shadow(0 9px 9px rgb(64 52 111 / 16%));
}


/* ---------- Navigation container ---------- */

.legal-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}


/* ---------- Mobile menu button ---------- */

.legal-menu-button {
  display: none;
  padding: 0.45rem;

  color: var(--legal-purple);
  background: transparent;
  border: 0;

  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}


/* ---------- Desktop navigation list ---------- */

.legal-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.3rem, 1vw, 1rem);

  margin: 0;
  padding: 0;

  list-style: none;
}


/* ---------- Navigation links ---------- */

.legal-nav-list a {
  display: block;
  padding: 0.6rem 0.9rem;

  color: #222222;
  border-radius: 999px;

  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}


/* ---------- Active and hovered navigation links ---------- */

.legal-nav-list a:hover,
.legal-nav-list a[aria-current="page"] {
  color: white;
  background: var(--legal-purple);

  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgb(64 52 111 / 18%);
}


/* ---------- Keyboard focus styles ---------- */

.legal-nav-list a:focus-visible,
.legal-menu-button:focus-visible,
.legal-button:focus-visible,
.legal-card a:focus-visible,
.privacy-toc a:focus-visible {
  outline: 4px solid var(--legal-yellow);
  outline-offset: 3px;
}


/* =========================================================
   5. PAGE HERO
========================================================= */

/* ---------- Hero container ---------- */

.legal-hero {
  position: relative;
  overflow: hidden;

  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 6vw, 5rem);

  text-align: center;
}


/* ---------- Decorative hero circles ---------- */

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;

  border-radius: 50%;
  pointer-events: none;
}

.legal-hero::before {
  width: clamp(7rem, 14vw, 13rem);
  aspect-ratio: 1;

  top: -3rem;
  left: -3rem;

  background: rgb(255 174 61 / 34%);

  animation: legal-float 6s ease-in-out infinite;
}

.legal-hero::after {
  width: clamp(6rem, 12vw, 11rem);
  aspect-ratio: 1;

  right: -2.5rem;
  bottom: -3rem;

  background: rgb(92 29 242 / 18%);

  animation: legal-float 7s 500ms ease-in-out infinite reverse;
}


/* ---------- Hero content wrapper ---------- */

.legal-hero-content {
  width: min(100%, 58rem);
  margin-inline: auto;

  position: relative;
  z-index: 1;

  animation: legal-rise-in 700ms var(--legal-ease) backwards;
}


/* ---------- Hero eyebrow label ---------- */

.legal-eyebrow {
  display: inline-block;

  margin: 0 0 1rem;
  padding: 0.55rem 1rem;

  color: var(--legal-purple);
  background: var(--legal-yellow);
  border-radius: 999px;

  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ---------- Hero title ---------- */

.legal-hero h1 {
  margin: 0;

  color: var(--legal-red);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
}


/* ---------- Hero description ---------- */

.legal-hero p {
  width: min(100%, 46rem);
  margin: 1.35rem auto 0;

  color: var(--legal-purple);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
}


/* ---------- Decorative pencil line ---------- */

.legal-pencil-line {
  width: min(13rem, 50%);
  height: 0.55rem;
  margin: 1.25rem auto 0;

  background:
    repeating-linear-gradient(
      90deg,
      rgb(94, 89, 89) 0 1.5rem,
      transparent 1.5rem 2rem
    );

  border-radius: 999px;
  transform: rotate(-1deg);
}


/* =========================================================
   6. MAIN CONTENT WRAPPER
========================================================= */

.legal-main {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}


/* =========================================================
   7. SITEMAP CARD GRID
========================================================= */

/* ---------- Sitemap grid layout ---------- */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}


/* ---------- Sitemap card ---------- */

.legal-card {
  position: relative;
  overflow: hidden;

  padding: clamp(1.5rem, 4vw, 2.5rem);

  background: var(--legal-white);
  border: 3px solid transparent;
  border-radius: var(--legal-radius-large);
  box-shadow: var(--legal-shadow);

  transition:
    transform 280ms var(--legal-ease),
    box-shadow 280ms var(--legal-ease),
    border-color 280ms ease;
}


/* ---------- Alternating card border colors ---------- */

.legal-card:nth-child(4n + 1) {
  border-color: rgb(255 230 109 / 75%);
}

.legal-card:nth-child(4n + 2) {
  border-color: rgb(51 184 255 / 35%);
}

.legal-card:nth-child(4n + 3) {
  border-color: rgb(20 173 0 / 30%);
}

.legal-card:nth-child(4n + 4) {
  border-color: rgb(237 28 36 / 24%);
}


/* ---------- Card hover effect ---------- */

.legal-card:hover {
  transform: translateY(-7px) rotate(-0.3deg);
  box-shadow: var(--legal-shadow-hover);
}


/* ---------- Card icon ---------- */

.legal-card-icon {
  display: grid;
  place-items: center;

  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;

  background: #fff8c7;
  border-radius: 50%;

  font-size: 1.8rem;
}


/* ---------- Card heading ---------- */

.legal-card h2 {
  margin: 0 0 0.65rem;

  color: var(--legal-red);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}


/* ---------- Card paragraph ---------- */

.legal-card p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}


/* ---------- Card button link ---------- */

.legal-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.65rem 1rem;

  color: white;
  background: var(--legal-purple);
  border-radius: 999px;

  font-weight: 900;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.legal-card a:hover {
  background: var(--legal-bright-purple);

  transform: translateX(4px);
  box-shadow: 0 8px 18px rgb(92 29 242 / 22%);
}


/* =========================================================
   8. PRIVACY PAGE LAYOUT
========================================================= */

/* ---------- Privacy page columns ---------- */

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}


/* ---------- Privacy table of contents ---------- */

.privacy-toc {
  position: sticky;
  top: 1.5rem;

  padding: 1.5rem;

  background: var(--legal-purple);
  color: white;
  border-radius: var(--legal-radius-large);
  box-shadow: var(--legal-shadow);
}


/* ---------- Table-of-contents heading ---------- */

.privacy-toc h2 {
  margin: 0 0 1rem;

  color: var(--legal-yellow);
  font-size: 1.45rem;
}


/* ---------- Table-of-contents list ---------- */

.privacy-toc ol {
  display: grid;
  gap: 0.55rem;

  margin: 0;
  padding-left: 1.35rem;
}


/* ---------- Table-of-contents links ---------- */

.privacy-toc a {
  color: white;

  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}


/* ---------- Privacy content column ---------- */

.privacy-content {
  display: grid;
  gap: 1.25rem;
}


/* ---------- Global paragraph spacing ---------- */

p {
  margin: 3%;
}


/* ---------- Individual privacy section ---------- */

.privacy-section {
  scroll-margin-top: 1rem;

  padding: clamp(1.5rem, 4vw, 2.5rem);

  background: white;
  border-radius: var(--legal-radius-large);
  box-shadow: var(--legal-shadow);
}


/* ---------- Privacy section heading ---------- */

.privacy-section h2 {
  margin: 0 0 0.85rem;

  color: var(--legal-red);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}


/* ---------- Privacy subsection heading ---------- */

.privacy-section h3 {
  color: var(--legal-purple);
}


/* ---------- Privacy paragraph and list spacing ---------- */

.privacy-section p:first-of-type {
  margin-top: 0;
}

.privacy-section p:last-child,
.privacy-section ul:last-child {
  margin-bottom: 0;
}

.privacy-section li + li {
  margin-top: 0.5rem;
}


/* ---------- Highlighted privacy notice ---------- */

.privacy-highlight {
  padding: 1rem 1.15rem;

  background: #fff8c7;
  border-left: 8px solid var(--legal-yellow);
  border-radius: var(--legal-radius-small);

  font-weight: 800;
}


/* ---------- Privacy warning box ---------- */

.privacy-warning {
  padding: 1rem 1.15rem;

  background: #f3efff;
  border-left: 8px solid var(--legal-bright-purple);
  border-radius: var(--legal-radius-small);
}


/* ---------- Last-updated text ---------- */

.last-updated {
  margin-top: 1rem;

  font-size: 0.95rem;
  font-weight: 800;
}


/* =========================================================
   9. CALL-TO-ACTION SECTION
========================================================= */

/* ---------- CTA container ---------- */

.legal-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;

  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);

  color: white;
  background: var(--legal-purple);
  border-radius: var(--legal-radius-large);
  box-shadow: var(--legal-shadow);
}


/* ---------- CTA heading ---------- */

.legal-cta h2 {
  margin: 0 0 0.35rem;
  color: var(--legal-yellow);
}


/* ---------- CTA paragraph ---------- */

.legal-cta p {
  margin: 0;
}


/* ---------- CTA button ---------- */

.legal-button {
  display: inline-block;
  padding: 0.85rem 1.2rem;

  color: white;
  background: var(--legal-red);
  border-radius: 999px;

  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.legal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgb(0 0 0 / 20%);
}


/* =========================================================
   10. LEGAL PAGE FOOTER
========================================================= */

/* ---------- Footer container ---------- */

.legal-footer {
  padding: 3rem 1rem 1.5rem;

  color: white;
  background: var(--legal-purple);

  text-align: center;
}


/* ---------- Footer logo ---------- */

.legal-footer-logo {
  width: min(14rem, 70%);
  margin-bottom: 1rem;

  /* Converts a black transparent logo to white. */
  filter: brightness(0) invert(1);
}


/* ---------- Footer paragraph ---------- */

.legal-footer p {
  margin: 0.4rem 0;
}


/* ---------- Footer navigation list ---------- */

.legal-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;

  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;

  border-top: 1px solid rgb(255 255 255 / 25%);

  list-style: none;
}


/* ---------- Footer navigation links ---------- */

.legal-footer-links a {
  color: var(--legal-yellow);

  font-weight: 800;
  text-underline-offset: 3px;
}


/* =========================================================
   11. ANIMATION KEYFRAMES
========================================================= */

/* ---------- Page content entrance ---------- */

@keyframes legal-rise-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ---------- Decorative floating shapes ---------- */

@keyframes legal-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}


/* =========================================================
   12. TABLET & MOBILE NAVIGATION
   Applies at 900px and smaller.
========================================================= */

@media (max-width: 900px) {
  /* ---------- Mobile header ---------- */

  .legal-header {
    min-height: 4.5rem;
    padding: 0.5rem clamp(0.75rem, 4vw, 1.5rem);
  }


  /* ---------- Mobile logo ---------- */

  .legal-logo img {
    width: clamp(9.5rem, 34vw, 13rem);
  }


  /* ---------- Mobile menu button ---------- */

  .legal-menu-button {
    display: block;

    position: relative;
    z-index: 10000;
  }


  /* ---------- Hidden mobile menu ---------- */

  .legal-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;

    width: min(22rem, calc(100vw - 1.5rem));
    margin: 0;
    padding: 0.75rem;

    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    z-index: 9999;

    background: white;
    border: 1px solid rgb(64 52 111 / 12%);
    border-radius: 0.9rem;
    box-shadow: 0 14px 35px rgb(0 0 0 / 18%);

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translate(-50%, -0.5rem);

    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 220ms ease;
  }


  /* ---------- Open mobile menu ---------- */

  .legal-nav-list.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: translate(-50%, 0);
  }


  /* ---------- Full-width mobile links ---------- */

  .legal-nav-list li,
  .legal-nav-list a {
    width: 100%;
  }

  .legal-nav-list a {
    padding: 0.75rem 1rem;
    text-align: center;
  }
}


/* =========================================================
   13. TABLET CONTENT
   Applies at 760px and smaller.
========================================================= */

@media (max-width: 760px) {
  /* One-column sitemap cards */

  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  /* One-column privacy layout */

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  /* Stops table of contents from sticking on small screens */

  .privacy-toc {
    position: static;
  }

  /* Stacks the CTA text and button */

  .legal-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* =========================================================
   14. MOBILE PHONES
   Applies at 520px and smaller.
========================================================= */

@media (max-width: 520px) {
  /* Mobile header spacing */

  .legal-header {
    padding: 0.4rem 0.7rem;
  }

  /* Mobile logo size */

  .legal-logo img {
    width: clamp(8.75rem, 46vw, 11rem);
  }

  /* Mobile menu-button size */

  .legal-menu-button {
    font-size: 1.8rem;
  }

  /* Mobile hero spacing */

  .legal-hero {
    padding-top: 3.5rem;
  }

  /* Slightly smaller mobile corner radius */

  .legal-card,
  .privacy-section,
  .privacy-toc {
    border-radius: 22px;
  }
}


/* =========================================================
   15. REDUCED-MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}