/* ==========================================
   LEGAL PAGES DESIGN SYSTEM
   Creative Hyü Support Hub
   Used for: Terms, Privacy, FAQs, Cookies, User Agreement
========================================== */

:root{
  --hyu-purple: #5e2bb8;
  --hyu-purple-soft: #f3ecff;
  --hyu-text: #222;
  --hyu-muted: #444;
  --hyu-muted-2: #777;

  --legal-max: 1100px;
  --legal-max-content: 900px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #f7f3ff, #ffffff);
  color: var(--hyu-text);
}

/* prevent scroll behind mobile menu */
body.mnav-open{ overflow: hidden; }

/* =========================
   STICKY HEADER
========================= */
.legal-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--hyu-purple);
  padding: 18px 0;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.legal-header-inner{
  width: 92%;
  max-width: var(--legal-max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

/* Brand logo */
.legal-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.legal-brand-img{
  height: 30px;
  width: auto;
  display: block;
}

/* Desktop nav */
.legal-nav{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 8px 2px;
}

.legal-nav a:hover{ text-decoration: underline; }

/* =========================================================
   MOBILE MENU BUTTON (same class as your site)
========================================================= */
.mnav-btn{
  display: none; /* only shows on mobile */
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
}

.mnav-btn:focus{
  outline: 2px solid rgba(255,255,255,.45);
  outline-offset: 2px;
}

.mnav-bars{
  width: 22px;
  height: 14px;
  display: inline-block;
  position: relative;
  transform: translateY(1px);
  border-top: 2px solid #fff;
  border-radius: 2px;
}

.mnav-bars::before,
.mnav-bars::after{
  content:"";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mnav-bars::before{ top: 5px; }
.mnav-bars::after{ top: 10px; }

/* =========================
   HERO INTRO
========================= */
.legal-hero{
  padding: 82px 18px 40px; /* accounts for sticky header */
  text-align: center;
}

.legal-hero-inner{
  max-width: 850px;
  margin: auto;
}

.legal-hero h1{
  font-size: 42px;
  color: var(--hyu-purple);
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

.legal-hero p{
  font-size: 16px;
  color: var(--hyu-muted);
  line-height: 1.7;
  margin: 0 auto 10px;
}

.legal-updated{
  margin-top: 18px;
  font-size: 13px;
  color: var(--hyu-muted-2);
}

/* =========================
   CONTENT CARD
========================= */
.legal-content{
  width: 92%;
  max-width: var(--legal-max-content);
  margin: auto;
  padding-bottom: 80px;
}

.legal-card{
  background: #fff;
  border-radius: 18px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.legal-card h2{
  font-size: 18px;
  margin: 34px 0 10px;
  color: var(--hyu-purple);
}

.legal-card h2:first-child{ margin-top: 0; }

.legal-card p{
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin: 0 0 12px;
}

.legal-contact{
  margin-top: 10px;
  padding: 14px;
  border-left: 4px solid var(--hyu-purple);
  background: var(--hyu-purple-soft);
  border-radius: 10px;
}

/* =========================
   FOOTER
========================= */
.legal-footer{
  background: var(--hyu-purple);
  color: #fff;
  padding: 25px 18px;
  text-align: center;
}

.legal-footer p{
  margin: 0;
  font-size: 14px;
}

.legal-links{
  margin-top: 10px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-links a{
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 2px;
}

.legal-links a:hover{ text-decoration: underline; }

/* =========================================================
   MOBILE MENU (Slide Down)
   - same structure as index.php
   - divider lines between links
   - animated X
========================================================= */
.mnav{
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.mnav.is-open{
  pointer-events: auto;
}

.mnav-overlay{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s ease;
}

.mnav.is-open .mnav-overlay{
  opacity: 1;
}

.mnav-panel{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: var(--hyu-purple);
  color: #fff;
  transform: translateY(-18px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.mnav.is-open .mnav-panel{
  transform: translateY(0);
  opacity: 1;
}

.mnav-top{
  width: 92%;
  margin: 0 auto;
  padding: 16px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mnav-brand img{
  height: 28px;
  width: auto;
  display: block;
}

/* Close button + Animated X */
.mnav-close{
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mnav-x{
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.mnav-x::before,
.mnav-x::after{
  content:"";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transform: translate(-50%,-50%) rotate(0deg);
  transition: transform .28s ease;
}

.mnav-x::after{
  transform: translate(-50%,-50%) rotate(0deg);
}

.mnav.is-open .mnav-x::before{
  transform: translate(-50%,-50%) rotate(45deg);
}

.mnav.is-open .mnav-x::after{
  transform: translate(-50%,-50%) rotate(-45deg);
}

/* Links area */
.mnav-links{
  width: 92%;
  margin: 0 auto;
  padding: 8px 0 18px;
  display: flex;
  flex-direction: column;
}

.mnav-link{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 2px;
  line-height: 1.2;
}

/* SIMPLE LINES BETWEEN LINKS */
.mnav-link + .mnav-link{
  border-top: 1px solid rgba(255,255,255,.18);
}

.mnav-divider{
  height: 1px;
  background: rgba(255,255,255,.28);
  margin: 12px 0;
}

.mnav-link.is-current{
  opacity: .95;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE: 992
========================================================= */
@media (max-width: 992px){
  .legal-hero{ padding: 76px 18px 34px; }
  .legal-hero h1{ font-size: 36px; }
  .legal-card{ padding: 40px; }
  .legal-header-inner{ width: 94%; }
}

/* =========================================================
   RESPONSIVE: 768
========================================================= */
@media (max-width: 768px){
  .legal-header{ padding: 12px 0; }
  .legal-brand-img{ height: 26px; }

  .legal-nav{ display: none; }
  .mnav-btn{ display: inline-flex; align-items:center; justify-content:center; }

  .legal-hero{ padding: 64px 18px 28px; }
  .legal-hero h1{ font-size: 30px; }
  .legal-hero p{ font-size: 15px; }

  .legal-card{
    padding: 28px;
    border-radius: 16px;
  }

  .legal-card p{ font-size: 14.5px; }
}

/* =========================================================
   RESPONSIVE: 480
========================================================= */
@media (max-width: 480px){
  .legal-brand-img{ height: 24px; }

  .legal-hero h1{ font-size: 26px; }
  .legal-hero p{ font-size: 14px; }

  .legal-card{
    padding: 22px;
    border-radius: 14px;
  }

  .legal-card h2{
    font-size: 16px;
    margin-top: 26px;
  }

  .legal-card p{
    font-size: 14px;
    line-height: 1.8;
  }

  .legal-footer p{ font-size: 13px; }
}