/* CrescentTrip — legal pages stylesheet (shared by about/contact/privacy/terms; fonts self-hosted). */

/* ---------- Self-hosted fonts (latin subsets, font-display: swap) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/outfit-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
  * { box-sizing: border-box; }
  body { margin:0; background:#FAF4E8; color:#24302B; font-family:'Outfit',sans-serif; line-height:1.65; }
  header { background:#0C4A46; color:#F3ECDC; padding:18px 0; }
  header .wrap { display:flex; align-items:center; justify-content:space-between; }
  header a.brand { color:#F3ECDC; font-family:'Fraunces',serif; font-weight:700; font-size:20px; text-decoration:none; }
  header a.home { color:#F3ECDC; opacity:.85; text-decoration:none; font-size:15px; }
  header a.home:hover { opacity:1; text-decoration:underline; }
  .wrap { max-width:820px; margin:0 auto; padding:0 20px; }
  main .wrap { padding-top:40px; padding-bottom:56px; }
  .card { background:#FFFDF8; border:1px solid #E7DCC3; border-radius:16px; padding:36px 38px; }
  h1 { font-family:'Fraunces',serif; font-size:32px; line-height:1.2; margin:0 0 8px; }
  h2 { font-family:'Fraunces',serif; font-size:20px; margin:28px 0 8px; }
  p, li { color:#5F6E63; font-size:16px; }
  p strong, li strong { color:#24302B; }
  a { color:#0C4A46; }
  .updated { color:#5F6E63; font-size:14px; margin-top:0; }
  footer { border-top:1px solid #E7DCC3; padding:22px 0 34px; }
  footer nav { display:flex; flex-wrap:wrap; gap:8px 20px; }
  footer a { color:#5F6E63; text-decoration:none; font-size:15px; }
  footer a:hover { color:#0C4A46; text-decoration:underline; }
  @media (max-width:560px) { .card { padding:26px 22px; } h1 { font-size:26px; } }
  /* ---------- v2 upgrade additions ---------- */
  .skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: #BF5527; color: #fff; padding: 10px 18px;
    border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
    transition: top .15s ease; font-family: 'Outfit', sans-serif;
  }
  .skip-link:focus { top: 0; color: #fff; }
  :focus-visible { outline: 3px solid #DE9A26; outline-offset: 2px; }
.ct-consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:999;background:#0C4A46;color:#F3ECDC;padding:14px 16px;border-radius:12px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;font-size:14px;line-height:1.5;box-shadow:0 12px 32px rgba(0,0,0,.25)}
.ct-consent a{color:#E9B44C;margin-left:6px}
.ct-consent button{background:#E9B44C;color:#1D130C;border:0;border-radius:8px;padding:9px 16px;font-weight:700;cursor:pointer;font-family:inherit}
.foot-note{color:#5F6E63;font-size:14px;margin-top:14px}
.guide-table{width:100%;border-collapse:collapse;margin:14px 0}
.guide-table th,.guide-table td{border:1px solid #E7DCC3;padding:8px 10px;text-align:left;font-size:15px}
.guide-table .num{text-align:right}
.table-note{font-size:13px;color:#5F6E63}
.lede{font-size:17px}
.related{margin-top:28px;border-top:1px solid #E7DCC3;padding-top:8px}

/* v4: Arabic type + RTL for legal/guides pages */
@font-face{font-family:"Plex Arabic";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/plex-arabic-400.woff2") format("woff2")}
@font-face{font-family:"Plex Arabic";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/plex-arabic-600.woff2") format("woff2")}
@font-face{font-family:"Plex Arabic";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/plex-arabic-700.woff2") format("woff2")}
html[lang="ar"] body{font-family:"Plex Arabic",system-ui,sans-serif}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{font-family:"Plex Arabic",Georgia,serif;letter-spacing:0}
.topbar{background:#083632;color:#F7EFDD;padding:10px 0}
.topbar .wrap{display:flex;align-items:center;gap:16px}
.topbar .brand{color:#F7EFDD;font-weight:800;text-decoration:none;font-size:1.15rem}
.topbar .lang-switch{margin-inline-start:auto;display:flex;gap:4px}
.topbar .lang-switch a{color:#E9DFC8;text-decoration:none;font-weight:800;font-size:.8rem;border:1.5px solid rgba(247,239,221,.35);border-radius:999px;padding:4px 10px}
.topbar .lang-switch a[aria-current="true"]{background:#DE9A26;border-color:#DE9A26;color:#23180A}
.consent-bar{position:fixed;inset-inline:16px;bottom:16px;z-index:80;background:#FFFDF8;color:#24302B;border:1px solid #E7DCC3;border-radius:16px;box-shadow:0 28px 56px rgba(84,54,20,.16);padding:14px 18px;display:flex;gap:14px;align-items:center;max-width:760px;margin:0 auto}
.consent-bar p{margin:0;font-size:.9rem;flex:1}
.consent-bar .chip-btn{border:1.5px solid #E7DCC3;background:#0C4A46;color:#fff;border-radius:999px;padding:8px 14px;font-weight:800;cursor:pointer}

/* ============ Site navigation: mobile drawer / desktop sidebar (v5) ============
   One pattern on every page type. Mobile: slim sticky topbar + overlay drawer
   sliding from the inline-start edge (RTL-aware via --nav-dx). Desktop
   (>=1024px): the drawer becomes a persistent fixed sidebar and the topbar
   is hidden. State lives only in html[data-nav] (set by nav.js). */
:root { --nav-dx: -110%; }
html[dir="rtl"] { --nav-dx: 110%; }
.topbar { position: sticky; top: 0; z-index: 90; background: #083632; color: #F7EFDD; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-top: 0; padding-bottom: 0; }
.topbar .brand { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; color: #F7EFDD; font-weight: 800; text-decoration: none; white-space: nowrap; }
html[lang="ar"] .topbar .brand { font-family: "Plex Arabic", Georgia, serif; }
.nav-toggle { margin-inline-start: 2px; flex: none; width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #F7EFDD; border: 1.5px solid rgba(247,239,221,.4); border-radius: 10px; cursor: pointer; padding: 0; }
.nav-toggle:hover { background: rgba(247,239,221,.1); }
.nav-toggle[aria-expanded="true"] { background: #E9B44C; border-color: #E9B44C; color: #23180A; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(5,28,25,.56); opacity: 0; transition: opacity .26s ease; }
.drawer-backdrop[hidden] { display: none; }
html[data-nav="open"] .drawer-backdrop { opacity: 1; }
.site-drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); z-index: 120; background: linear-gradient(180deg, #0C4A46 0%, #083632 100%); color: #F7EFDD; display: flex; flex-direction: column; padding: 18px 18px 22px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(var(--nav-dx)); visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s; box-shadow: 0 0 44px rgba(0,0,0,.35); }
html[data-nav="open"] .site-drawer { transform: translateX(0); visibility: visible; transition: transform .26s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.site-drawer .brand { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 700; color: #F7EFDD; text-decoration: none; white-space: nowrap; }
html[lang="ar"] .site-drawer .brand { font-family: "Plex Arabic", Georgia, serif; }
.drawer-close { flex: none; width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #F7EFDD; border: 1.5px solid rgba(247,239,221,.4); border-radius: 999px; cursor: pointer; padding: 0; }
.drawer-close:hover { background: rgba(247,239,221,.1); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 12px; border-inline-start: 3px solid transparent; color: #E9DFC8; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.drawer-nav a:hover { background: rgba(247,239,221,.09); color: #fff; }
.drawer-nav a[aria-current="page"] { background: rgba(233,180,76,.16); color: #fff; border-inline-start-color: #E9B44C; }
.drawer-foot { margin-top: auto; padding-top: 24px; }
.site-drawer .lang-switch { margin-inline-start: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.site-drawer .lang-switch a { color: #E9DFC8; text-decoration: none; font-weight: 800; font-size: .82rem; border: 1.5px solid rgba(247,239,221,.35); border-radius: 999px; padding: 5px 11px; }
.site-drawer .lang-switch a[aria-current="true"] { background: #E9B44C; border-color: #E9B44C; color: #23180A; }
@media (min-width: 1024px) {
  .topbar { display: none; }
  body { padding-inline-start: 252px; }
  .site-drawer { transform: none; visibility: visible; transition: none; width: 252px; padding: 26px 20px 24px; box-shadow: none; border-inline-end: 1px solid rgba(233,180,76,.28); }
  .drawer-backdrop { display: none !important; }
  .drawer-close { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-drawer, .drawer-backdrop { transition: none; }
}
@media print {
  .site-drawer, .drawer-backdrop, .nav-toggle { display: none !important; }
  body { padding-inline-start: 0; }
}
/* Mobile-fit (2026-12-03): at <=480px the topbar row's min-content
   (brand + language switch + 44px toggle + gaps) exceeds the .wrap
   content box and pushed the toggle past the right edge. Trim the
   row's horizontal padding/gaps and the language-pill padding so
   the whole row fits inside the viewport. */
@media (max-width: 480px) {
  .topbar .wrap { gap: 8px; padding-inline: 12px; }
  .topbar .lang-switch a { padding-left: 8px; padding-right: 8px; }
}
