/* ============================================================
   Preharsh — shared styling for the policy / legal pages
   (Terms, Privacy, Refund, Shipping, Contact). Mirrors the
   design tokens used across index.html and product.html so the
   chrome — nav, footer, cart drawer — matches the rest of the
   site exactly. One stylesheet, five thin pages.
   ============================================================ */

:root {
  --cream: #f4f2ec; --paper: #fbfaf6; --ink: #1b1714; --ink-soft: #6a635b;
  --dark: #0b0a09; --bronze: #9b7c4f; --hairline: rgba(27,23,20,0.12);
  --serif: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--bronze); color: var(--cream); }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.label { font-family: var(--sans); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--bronze); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3.5vw; background: rgba(239,234,226,0.82); backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--hairline); color: var(--ink); }
.nav__logo { display: block; height: 24px; text-decoration: none; }
.nav__logo-img { display: block; height: 100%; width: auto; }
.nav__actions { display: flex; align-items: center; gap: 1.9rem; }
.nav__link { position: relative; display: inline-flex; align-items: center; color: inherit; text-decoration: none; opacity: 0.82; transition: opacity 0.6s var(--ease); }
.nav__link:hover { opacity: 1; }
.nav__link svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 0.9; }
@media (max-width: 600px) { .nav__actions { gap: 1.5rem; } .nav__link svg { width: 21px; height: 21px; } }

/* ---------- LEGAL CONTENT ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(120px, 18vh, 180px) 6vw clamp(80px, 12vh, 120px); }
.legal__crumbs { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: clamp(2rem, 5vh, 3rem); }
.legal__crumbs a { color: var(--ink-soft); text-decoration: none; transition: color 0.5s var(--ease); }
.legal__crumbs a:hover { color: var(--bronze); }
.legal__crumbs span { color: var(--ink); }
.legal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.05; letter-spacing: 0.01em; margin: 0.6rem 0 0.5rem; }
.legal__updated { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: clamp(2.4rem, 6vh, 3.6rem); }
.legal__intro { font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink); max-width: 60ch; margin-bottom: clamp(2.4rem, 6vh, 3.4rem); }
.legal__body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: 0.01em; color: var(--ink); margin: clamp(2.2rem, 5vh, 3rem) 0 0.9rem; }
.legal__body h3 { font-family: var(--sans); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink); margin: 1.6rem 0 0.6rem; }
.legal__body p { font-size: 0.95rem; line-height: 1.9; color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 68ch; }
.legal__body ul { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 68ch; }
.legal__body li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; line-height: 1.85; color: var(--ink-soft); margin-bottom: 0.6rem; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--bronze); }
.legal__body a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bronze); transition: color 0.4s var(--ease); }
.legal__body a:hover { color: var(--bronze); }
.legal__body strong { color: var(--ink); font-weight: 400; }
.legal__rule { border: 0; border-top: 1px solid var(--hairline); margin: clamp(2.4rem, 6vh, 3.4rem) 0; }
.legal__note { font-size: 0.8rem; line-height: 1.8; color: var(--ink-soft); font-style: italic; padding: 1.2rem 1.4rem; border-left: 2px solid var(--bronze); background: var(--paper); border-radius: 0 3px 3px 0; max-width: 68ch; }

/* contact cards */
.legal__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 2rem 0; max-width: 68ch; }
.legal__card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem 1.5rem; background: var(--paper); border: 1px solid rgba(27,23,20,0.06); border-radius: 3px; }
.legal__card .label { font-size: 0.6rem; }
.legal__card a, .legal__card span { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); text-decoration: none; border: 0; transition: color 0.4s var(--ease); }
.legal__card a:hover { color: var(--bronze); }
.legal__card small { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: var(--cream); padding: 14vh 8vw 6vh; display: flex; flex-direction: column; gap: 6vh; }
.footer__brand { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 13vw, 11rem); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; padding-left: 0.12em; color: rgba(239,234,226,0.96); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; }
.footer__nav a { color: rgba(239,234,226,0.6); text-decoration: none; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.5s var(--ease); }
.footer__nav a:hover { color: var(--bronze); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4vh 3vw; }
.footer__links { display: flex; flex-wrap: wrap; gap: 3.2vw; }
.footer__link { display: inline-flex; align-items: center; gap: 0.75rem; color: rgba(239,234,226,0.78); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.12em; transition: color 0.6s var(--ease); }
.footer__link:hover { color: var(--bronze); }
.footer__link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.1; }
.footer__legal { color: rgba(239,234,226,0.38); font-size: 0.7rem; letter-spacing: 0.22em; }

/* ---------- CART DRAWER ---------- */
.cart-count { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--bronze); color: #fff; font-family: var(--sans); font-size: 0.56rem; font-weight: 600; line-height: 16px; text-align: center; opacity: 0; transform: scale(0.4); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; }
.cart-count.show { opacity: 1; transform: scale(1); }
.cart-scrim { position: fixed; inset: 0; background: rgba(20,16,10,0.42); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease); z-index: 90; }
.cart-scrim.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--cream); z-index: 91; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.55s var(--ease); box-shadow: -30px 0 80px -40px rgba(20,16,10,0.5); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.9rem 1.8rem 1.3rem; border-bottom: 1px solid rgba(27,23,20,0.1); }
.cart-drawer__title { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--ink); }
.cart-drawer__close { background: transparent; border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); transition: color 0.4s var(--ease); }
.cart-drawer__close:hover { color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.6rem 1.8rem; }
.cart-empty { padding: 3rem 0; text-align: center; color: var(--ink-soft); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid rgba(27,23,20,0.08); }
.cart-item__thumb { width: 60px; height: 75px; border-radius: 2px; background: var(--paper) url('kurta-cutout.png') no-repeat bottom center / contain; }
.cart-item__name { font-family: var(--serif); font-size: 1rem; color: var(--ink); line-height: 1.2; }
.cart-item__price { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 0.25rem; }
.cart-item__qty { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.55rem; }
.cart-item__qty button { width: 22px; height: 22px; border: 1px solid rgba(27,23,20,0.2); background: transparent; border-radius: 2px; cursor: pointer; color: var(--ink); font-size: 0.85rem; line-height: 1; transition: border-color 0.4s var(--ease), color 0.4s var(--ease); }
.cart-item__qty button:hover { border-color: var(--bronze); color: var(--bronze); }
.cart-item__qty span { font-family: var(--sans); font-size: 0.78rem; min-width: 16px; text-align: center; }
.cart-item__remove { background: transparent; border: 0; cursor: pointer; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.4s var(--ease); }
.cart-item__remove:hover { color: var(--bronze); }
.cart-drawer__foot { padding: 1.4rem 1.8rem 2rem; border-top: 1px solid rgba(27,23,20,0.1); }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.1rem; }
.cart-subtotal__label { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.cart-subtotal__val { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.cart-checkout { display: block; width: 100%; text-align: center; cursor: pointer; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px; padding: 1.05rem; transition: background 0.5s var(--ease), letter-spacing 0.5s var(--ease); }
.cart-checkout:hover { background: var(--bronze); border-color: var(--bronze); letter-spacing: 0.34em; }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-note { margin-top: 0.8rem; text-align: center; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--ink-soft); }
