/* ---------------------------------------
   ThaireFaruq – Legal pages (disclaimer / privacy)
   File: /assets/css/disclaimer_page.css
   Mobile + desktop friendly
   + “On this page” modal (scrollable)
   + DB menu supports long lists (scrollable)
---------------------------------------- */

:root{
  --bg-1:#fff8fc;
  --bg-2:#fdeef6;

  --ink:#2f2430;
  --muted:#7b6b73;

  --card:#ffffff;
  --line:#ecd6e2;

  --shadow:0 16px 34px rgba(148,112,136,0.14);
  --r-lg:18px;

  --accent:#e39bb8;
  --accent-soft:#f6c7da;

  --legal-bg-top:#fffef7;
  --legal-bg-btm:#fff7df;
  --legal-border:rgba(245,158,11,.24);
  --legal-rail:rgba(245,158,11,.34);
  --legal-chip:#fde68a;
  --legal-chip-text:#8a4b12;

  --toc-bg:#ffffff;
  --toc-border:rgba(236,214,226,.85);
  --toc-shadow:0 14px 28px rgba(148,112,136,0.12);

  --focus:rgba(227,155,184,.45);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ min-height:100%; }

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  line-height:1.6;
  padding:16px;
  background:radial-gradient(circle at top, var(--bg-1) 0, var(--bg-2) 50%, #faf3ff 100%);
}

@media (min-width:768px){
  body{ padding:40px 24px; }
}

:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:10px;
}

body.modal-open{
  overflow:hidden;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(236,214,226,.9);
  box-shadow:0 14px 28px rgba(148,112,136,.18);
  z-index:999;
}

/* Shell & card */
.shell{ max-width:980px; margin:0 auto; }

.card{
  background:linear-gradient(180deg,#ffffff 0%, #fffefe 100%);
  border-radius:var(--r-lg);
  padding:24px 22px 26px;
  box-shadow:var(--shadow);
  border:1px solid rgba(236,214,226,0.95);
  position:relative;
  overflow:hidden;
}
@media (min-width:768px){
  .card{ padding:32px 40px 38px; }
}

/* Header strip */
.site-strip{
  text-align:center;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.22em;
  color:var(--muted);
  margin-bottom:.8rem;
  padding-bottom:.35rem;
  border-bottom:1px dashed rgba(236,214,226,0.85);
}

/* Page head */
.page-head{ margin-bottom:1.1rem; padding-right:56px; }
.page-eyebrow{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--muted);
  margin-bottom:.25rem;
}
.page-head h1{
  font-size:1.6rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:.2rem;
}
.page-meta-line{
  font-size:.8rem;
  color:var(--muted);
  font-style:italic;
  margin-bottom:.35rem;
}

/* General content */
.page-body{ font-size:.98rem; }
.page-body p{ margin-bottom:.8rem; }
.page-body a{
  color:#2563eb;
  text-decoration:underline;
  text-underline-offset:2px;
}
.page-body a:hover{ text-decoration:none; }

/* Hero note */
.hero-note-wrapper{ margin-bottom:1rem; }

.hero-note{
  width:100%;
  border-radius:18px;
  border:1px solid rgba(245,158,11,.28);
  background:linear-gradient(180deg,#fffbe5 0%, #fff3c9 100%);
  box-shadow:0 10px 22px rgba(245,158,11,.12);
  padding:10px 14px 11px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  text-align:left;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.hero-note:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(245,158,11,.16);
  filter:brightness(1.01);
}
.hero-note-icon{ font-size:1.1rem; margin-top:2px; }
.hero-note-main{ flex:1; }
.hero-note-title{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#8a4b12;
  margin-bottom:2px;
}
.hero-note-text{ font-size:.9rem; color:#6f3c12; }
.hero-note-action{
  display:inline-flex;
  align-items:center;
  margin-top:4px;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:#8a4b12;
}
.hero-note-action span{ margin-left:4px; }

/* “On this page” CTA bar */
.toc-cta{
  margin:0 0 1rem;
}

.toc-open-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(236,214,226,.85);
  background:linear-gradient(135deg, rgba(255,255,255,.92), rgba(253,238,246,.85));
  box-shadow:0 12px 24px rgba(148,112,136,.10);
  cursor:pointer;
  text-align:left;
  transition:transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.toc-open-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(148,112,136,.14);
  filter:brightness(1.01);
}

.toc-open-left{ display:flex; align-items:center; gap:10px; }
.toc-open-kicker{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
}

.toc-open-right{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.toc-open-hint{
  font-size:.82rem;
  color:#5f5560;
}
.toc-open-chevron{
  font-size:1.2rem;
  color:#6b5a63;
  line-height:1;
}

/* Legal sections */
.page-body.legal{ margin-top:.2rem; }
.legal-sec{ scroll-margin-top:18px; }

.legal-sec{
  background:linear-gradient(180deg,var(--legal-bg-top) 0%, var(--legal-bg-btm) 100%);
  border-radius:16px;
  border:1px solid var(--legal-border);
  border-left:5px solid var(--legal-rail);
  box-shadow:
    0 14px 28px rgba(245,158,11,.10),
    0 0 0 1px rgba(255,255,255,.65) inset;
  padding:0.95rem 1rem 1.05rem;
  position:relative;
  margin-bottom:.9rem;
}
.legal-sec::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:14px;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.40);
}
@media (min-width:768px){
  .legal-sec{ padding:1.05rem 1.2rem 1.2rem; }
}

.legal-sec-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:.45rem;
  flex-wrap:wrap;
}

.legal-sec h2{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  margin:0;
  color:#243044;
  flex:1 1 260px;
  min-width:240px;
}

.legal-anchor{
  text-decoration:none;
  color:rgba(75,85,99,.85);
  border:1px solid rgba(236,214,226,.9);
  background:rgba(255,255,255,.75);
  border-radius:999px;
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  line-height:1;
  flex:0 0 auto;
}
.legal-anchor:hover{ background:#fff; color:#4b5563; }

.legal-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.8rem;
  height:1.8rem;
  border-radius:999px;
  background:var(--legal-chip);
  color:var(--legal-chip-text);
  font-weight:800;
  font-size:.95rem;
  box-shadow:0 8px 16px rgba(250,204,21,.18);
  flex-shrink:0;
}

.legal-sub{
  margin-top:.65rem;
  margin-bottom:.25rem;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:#4a2f19;
}

.legal-sec p{
  margin-bottom:.6rem;
  color:#475569;
}
.legal-sec p:last-child{ margin-bottom:0; }

.legal-sec-foot{
  margin-top:.7rem;
  padding-top:.7rem;
  border-top:1px dashed rgba(245,158,11,.22);
  display:flex;
  justify-content:flex-end;
}

.legal-toplink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  border-radius:999px;
  padding:8px 12px;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#4b1f35;
  border:1px solid rgba(244,114,182,.22);
  background:linear-gradient(135deg, #fff8fc, #fdeef6);
}
.legal-toplink:hover{ filter:brightness(1.02); }

.legal-footnote{
  margin-top:.2rem;
  font-size:.82rem;
  color:var(--muted);
  border-top:1px dashed rgba(245,158,11,.28);
  padding-top:.75rem;
}

/* Bullets */
.legal-list{
  list-style:none;
  margin:0.5rem 0 0.9rem;
  padding:0;
}
.legal-list li{
  position:relative;
  padding-left:1.6rem;
  margin-bottom:0.35rem;
  line-height:1.55;
  color:#3b475a;
}
.legal-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.55em;
  width:0.48rem;
  height:0.48rem;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  border:2px solid rgba(245,158,11,.36);
  box-shadow:0 2px 8px rgba(245,158,11,.08);
}

/* Footer */
.page-foot{
  margin-top:1.4rem;
  padding-top:1rem;
  border-top:1px dashed var(--line);
  font-size:.8rem;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  flex-wrap:wrap;
}
.page-foot .label{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.75rem;
}

/* Hamburger */
.hamburger{
  position:absolute;
  top:16px;
  right:16px;
  width:38px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(148,112,136,0.38);
  background:rgba(255,255,255,0.96);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
  box-shadow:0 10px 22px rgba(148,112,136,0.18);
  z-index:10;
}
.hamburger:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(148,112,136,0.22);
  background:#fff;
}
.hamburger-lines{
  width:18px;
  height:12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.hamburger-lines span{
  display:block;
  height:2px;
  border-radius:999px;
  background:var(--muted);
}

/* Modals */
.modal-backdrop{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,10,15,0.42);
  z-index:40;
}
.modal-backdrop[hidden]{ display:none; }

.modal-panel{
  position:relative;
  background:var(--card);
  border-radius:18px;
  width:min(520px,92vw);
  max-height:86vh;
  border:1px solid rgba(255,255,255,0.95);
  box-shadow:0 26px 56px rgba(85,57,77,0.45);
  padding:18px 18px 14px;
  overflow:hidden;
}

/* Make the TOC modal slightly tighter */
.modal-panel--toc{
  width:min(560px,92vw);
}

.modal-header{ margin-bottom:.6rem; padding-right:26px; }

.modal-eyebrow{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--muted);
  margin-bottom:.25rem;
}
.modal-title{
  font-size:.95rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.modal-body{
  font-size:.92rem;
  color:var(--ink);
  max-height:calc(86vh - 90px);
  overflow:auto;
  padding-top:.4rem;
  -webkit-overflow-scrolling:touch;
}

.modal-body--toc{
  max-height:calc(86vh - 120px);
}

.modal-footer{
  margin-top:.6rem;
  padding-top:.6rem;
  border-top:1px dashed rgba(236,214,226,.9);
  display:flex;
  justify-content:flex-end;
}

.modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(148,112,136,0.40);
  background:rgba(255,255,255,0.95);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  color:var(--muted);
  box-shadow:0 8px 18px rgba(148,112,136,0.22);
  padding:0;
}
.modal-close:hover{ background:#ffffff; }

/* Menu list */
.menu-list{ list-style:none; padding:0; margin:0; }
.menu-list-section{ margin-bottom:.9rem; }

.menu-list-section-title{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  margin-bottom:.25rem;
}

.menu-link{
  display:block;
  width:100%;
  border-radius:999px;
  padding:7px 10px;
  font-size:.86rem;
  text-decoration:none;
  color:var(--ink);
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(236,214,226,0.9);
  margin-bottom:6px;
}

.menu-link .tag{
  display:inline-block;
  margin-left:.45rem;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}

.menu-link:hover{
  background:#fff8fc;
  border-color:rgba(246,199,218,.85);
}

.menu-link--active{
  border-color:rgba(227,155,184,.90);
  background:#fdeef6;
}

.menu-empty{
  font-size:.9rem;
  color:var(--muted);
  padding:10px 8px;
}

/* TOC list inside modal */
.toc-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.toc-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(236,214,226,.9);
  background:rgba(255,255,255,.92);
  text-decoration:none;
  color:var(--ink);
}

.toc-link:hover{
  background:#fff8fc;
  border-color:rgba(246,199,218,.9);
}

.toc-chip{
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#6b2140;
  background:#fdeef6;
  border:1px solid rgba(227,155,184,.35);
  flex:0 0 auto;
}

.toc-text{
  font-size:.92rem;
  color:#2f2430;
}

/* Mobile bottom-sheet behaviour */
@media (max-width:600px){
  .modal-backdrop{ align-items:flex-end; }
  .modal-panel{
    width:100%;
    border-radius:18px 18px 0 0;
    max-height:88vh;
  }
  .modal-body{ max-height:calc(88vh - 90px); }
  .modal-body--toc{ max-height:calc(88vh - 120px); }
}

/* Floating menu button */
.floating-menu-btn{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:45;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:110px;
  padding:9px 18px;
  border-radius:999px;
  border:1px solid rgba(244,114,182,.28);
  background:
    radial-gradient(circle at 20% 0%, #ffffff 0, #fff8fc 44%, #fdeef6 86%),
    linear-gradient(135deg, #fff8fc, #fdeef6);
  box-shadow:
    0 10px 20px rgba(148,112,136,.20),
    0 0 0 1px rgba(255,255,255,.60) inset;
  color:#4b1f35;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  cursor:pointer;
  text-decoration:none;
  transition:transform 150ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out;
}
.floating-menu-btn:hover{
  transform:translateX(-50%) translateY(-1px) scale(1.02);
  box-shadow:
    0 14px 26px rgba(148,112,136,.26),
    0 0 0 1px rgba(255,255,255,.75) inset;
  filter:brightness(1.02);
}
.floating-menu-btn:active{
  transform:translateX(-50%) translateY(0) scale(.99);
  box-shadow:
    0 8px 16px rgba(148,112,136,.22),
    0 0 0 1px rgba(255,255,255,.55) inset;
}
.floating-menu-label{ position:relative; top:1px; }
.floating-menu-icon{ font-size:1rem; line-height:1; }

@media (max-width:480px){
  .floating-menu-btn{
    min-width:96px;
    padding:8px 14px;
    font-size:.78rem;
    bottom:14px;
  }
}

/* Note modal (unchanged styling) */
.note-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:60;
}
.note-modal-backdrop[hidden]{ display:none; }

.note-modal-dialog{
  width:min(520px,92vw);
  max-height:80vh;
  border-radius:18px;
  background:linear-gradient(180deg,var(--legal-bg-top) 0%, var(--legal-bg-btm) 100%);
  border:1px solid rgba(245,158,11,.24);
  box-shadow:0 28px 70px rgba(15,23,42,.70);
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
}
.note-modal-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}
.note-modal-icon{ font-size:1.4rem; }
.note-modal-title-group{ flex:1; }
.note-modal-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#8a4b12;
  margin-bottom:1px;
}
.note-modal-title{ font-size:1.05rem; color:#6f3c12; }
.note-modal-close{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  padding:2px 6px;
  border-radius:999px;
  color:#8a4b12;
}
.note-modal-close:hover{ background:rgba(245,158,11,.10); }
.note-modal-body{
  margin-top:4px;
  padding-top:4px;
  border-top:1px solid rgba(245,158,11,.18);
  font-size:.9rem;
  color:#6f3c12;
  max-height:calc(80vh - 70px);
  overflow-y:auto;
}
.note-modal-body p{ margin-bottom:.7rem; }
.note-modal-body p:last-child{ margin-bottom:0; }
