/* ═══════════════════════════════════════════════
   LEGAL PAGES — legal.css
   Shared stylesheet for all standalone legal pages
   ═══════════════════════════════════════════════ */

   @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

   :root {
     --brand:       #ff7a00;
     --brand-deep:  #d95f00;
     --brand-light: #ffb366;
     --brand-pale:  #fff3e6;
     --dark:        #1a0a00;
     --text:        #3d1f00;
     --muted:       #8a6240;
     --white:       #fffdf9;
     --cream:       #fdf5ec;
     --card-bg:     rgba(255,253,249,0.95);
     --radius:      20px;
   }
   
   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   html  { scroll-behavior: smooth; }
   body  {
     font-family: 'DM Sans', sans-serif;
     background: var(--cream);
     color: var(--text);
     overflow-x: hidden;
     min-height: 100vh;
   }
   
   /* ── NAV (same compact style) ── */
   .legal-nav-bar {
     position: sticky; top: 0; z-index: 100;
     padding: 10px 40px;
     display: flex; align-items: center; justify-content: space-between;
     background: rgba(255,253,249,0.92);
     backdrop-filter: blur(20px);
     border-bottom: 1px solid rgba(255,122,0,0.14);
     box-shadow: 0 2px 24px rgba(255,122,0,0.07);
     min-height: 56px;
   }
   .nav-logo {
     font-family: 'Playfair Display', serif;
     font-size: 1.5rem; font-weight: 900;
     color: var(--brand); letter-spacing: -1px;
     display: flex; align-items: center; gap: 8px;
     text-decoration: none;
   }
   .nav-logo-icon { width: 34px; height: 34px; flex-shrink: 0; }
   .nav-logo span { color: var(--dark); }
   .back-link {
     display: inline-flex; align-items: center; gap: 7px;
     font-size: .86rem; font-weight: 600; color: var(--muted);
     text-decoration: none; transition: color .2s;
   }
   .back-link:hover { color: var(--brand); }
   .back-link svg { width: 16px; height: 16px; }
   
   /* ── LEGAL PAGE HERO ── */
   .legal-hero {
     background: linear-gradient(135deg, var(--dark) 0%, #2e1200 60%, #1a0800 100%);
     padding: 64px 40px 52px;
     text-align: center; position: relative; overflow: hidden;
   }
   .legal-hero::before {
     content: '';
     position: absolute; inset: 0;
     background: radial-gradient(ellipse at 50% 100%, rgba(255,122,0,.18) 0%, transparent 65%);
     pointer-events: none;
   }
   .legal-hero-icon {
     width: 64px; height: 64px; margin: 0 auto 20px;
     background: rgba(255,122,0,.15); border-radius: 20px;
     display: flex; align-items: center; justify-content: center;
     color: var(--brand-light); position: relative; z-index: 1;
     border: 1px solid rgba(255,122,0,.25);
   }
   .legal-hero-icon svg { width: 30px; height: 30px; }
   .legal-hero h1 {
     font-family: 'Playfair Display', serif;
     font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
     color: var(--white); line-height: 1.15; position: relative; z-index: 1;
   }
   .legal-hero .updated {
     display: inline-block; margin-top: 14px;
     font-size: .8rem; color: rgba(255,253,249,.5);
     background: rgba(255,255,255,.06); border-radius: 50px;
     padding: 6px 16px; position: relative; z-index: 1;
   }
   
   /* ── MAIN LAYOUT ── */
   .legal-layout {
     max-width: 860px; margin: 0 auto;
     padding: 56px 40px 96px;
     display: grid; grid-template-columns: 220px 1fr; gap: 48px;
     align-items: start;
   }
   
   /* ── STICKY SIDEBAR ── */
   .legal-sidebar {
     position: sticky; top: 80px;
     background: var(--card-bg); border-radius: var(--radius);
     border: 1px solid rgba(255,122,0,.1);
     padding: 24px 0; overflow: hidden;
     box-shadow: 0 8px 32px rgba(255,122,0,.06);
   }
   .sidebar-title {
     font-size: .72rem; font-weight: 700; text-transform: uppercase;
     letter-spacing: 1.4px; color: var(--muted); padding: 0 20px 14px;
     border-bottom: 1px solid rgba(255,122,0,.08);
   }
   .sidebar-link {
     display: flex; align-items: center; gap: 9px;
     padding: 11px 20px; font-size: .86rem; font-weight: 500;
     color: var(--muted); text-decoration: none;
     transition: all .2s; border-left: 3px solid transparent;
   }
   .sidebar-link svg { width: 15px; height: 15px; flex-shrink: 0; }
   .sidebar-link:hover { color: var(--brand); background: var(--brand-pale); border-left-color: var(--brand); }
   .sidebar-link.active { color: var(--brand-deep); background: var(--brand-pale); border-left-color: var(--brand); font-weight: 600; }
   
   /* ── CONTENT AREA ── */
   .legal-content-area {
     background: var(--card-bg); border-radius: var(--radius);
     border: 1px solid rgba(255,122,0,.1);
     padding: 48px 52px;
     box-shadow: 0 8px 32px rgba(255,122,0,.06);
   }
   .legal-content-area h2 {
     font-family: 'Playfair Display', serif;
     font-size: 1.9rem; font-weight: 900; color: var(--dark);
     margin-bottom: 6px;
   }
   .legal-content-area .doc-date {
     font-size: .8rem; color: var(--muted); margin-bottom: 36px;
     display: flex; align-items: center; gap: 6px;
   }
   .legal-content-area .doc-date svg { width: 14px; height: 14px; }
   
   .legal-content-area h3 {
     font-family: 'Playfair Display', serif;
     font-size: 1.18rem; font-weight: 700; color: var(--dark);
     margin: 32px 0 10px; padding-top: 32px;
     border-top: 1px solid rgba(255,122,0,.1);
     display: flex; align-items: center; gap: 8px;
   }
   .legal-content-area h3:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
   .legal-content-area h3 .h3-num {
     width: 26px; height: 26px; border-radius: 8px;
     background: var(--brand-pale); color: var(--brand-deep);
     font-size: .75rem; font-weight: 800; display: inline-flex;
     align-items: center; justify-content: center; flex-shrink: 0;
   }
   
   .legal-content-area p  { font-size: .96rem; line-height: 1.85; color: var(--text); margin-bottom: 14px; }
   .legal-content-area ul { padding-left: 0; margin-bottom: 14px; list-style: none; }
   .legal-content-area li {
     font-size: .96rem; line-height: 1.75; color: var(--text);
     margin-bottom: 8px; padding-left: 20px; position: relative;
   }
   .legal-content-area li::before {
     content: ''; position: absolute; left: 0; top: 10px;
     width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
   }
   .legal-content-area strong { color: var(--dark); font-weight: 600; }
   .legal-content-area a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
   .legal-content-area em { color: var(--muted); font-style: italic; }
   
   /* Highlight box */
   .legal-highlight {
     background: var(--brand-pale); border: 1px solid rgba(255,122,0,.2);
     border-radius: 14px; padding: 20px 24px; margin: 24px 0;
     display: flex; gap: 14px; align-items: flex-start;
   }
   .legal-highlight-icon { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
   .legal-highlight-icon svg { width: 20px; height: 20px; }
   .legal-highlight p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--brand-deep); font-weight: 500; }
   
   /* Timeline for refund */
   .refund-timeline {
     display: flex; flex-direction: column; gap: 0; margin: 16px 0 20px;
   }
   .refund-row {
     display: flex; gap: 16px; align-items: center;
     padding: 14px 16px; border-radius: 12px;
     border: 1px solid rgba(255,122,0,.1); background: white;
     margin-bottom: 8px;
   }
   .refund-row .method { font-weight: 600; font-size: .9rem; color: var(--dark); flex: 1; }
   .refund-row .timeline-badge {
     background: var(--brand-pale); color: var(--brand-deep);
     border-radius: 50px; padding: 4px 14px; font-size: .78rem; font-weight: 700;
   }
   
   /* Steps for deletion */
   .deletion-steps { list-style: none !important; padding-left: 0 !important; }
   .deletion-steps li {
     display: flex; gap: 14px; align-items: flex-start;
     padding: 14px 16px; border-radius: 12px; background: white;
     border: 1px solid rgba(255,122,0,.1); margin-bottom: 10px;
     padding-left: 16px !important;
   }
   .deletion-steps li::before { display: none !important; }
   .step-circle {
     width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
     background: linear-gradient(135deg, var(--brand), var(--brand-deep));
     color: #fff; font-weight: 700; font-size: .82rem;
     display: flex; align-items: center; justify-content: center;
   }
   
   /* ── FOOTER ── */
   .legal-footer {
     background: var(--dark); padding: 32px 40px;
     text-align: center; color: rgba(255,253,249,.45);
     font-size: .82rem;
   }
   .legal-footer a { color: rgba(255,253,249,.45); text-decoration: none; transition: color .2s; margin: 0 10px; }
   .legal-footer a:hover { color: var(--brand-light); }
   .legal-footer-links { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin-bottom: 12px; }
   
   /* ── RESPONSIVE ── */
   @media (max-width: 780px) {
     .legal-layout { grid-template-columns: 1fr; padding: 32px 20px 64px; gap: 24px; }
     .legal-sidebar { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 16px; gap: 8px; }
     .sidebar-title { display: none; }
     .sidebar-link  { padding: 8px 14px; border-left: none; border-radius: 50px; border: 1px solid rgba(255,122,0,.15); font-size: .8rem; }
     .sidebar-link.active { background: var(--brand); color: #fff; border-color: var(--brand); }
     .sidebar-link svg { display: none; }
     .legal-content-area { padding: 28px 20px; }
     .legal-nav-bar { padding: 10px 16px; }
     .legal-hero { padding: 44px 20px 38px; }
   }