/* ============================================================
   policy.css  –  Urja Jwellery  |  Policy Page
   Navy (#062037) + Gold Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:         #062037;
  --navy-deep:    #041525;
  --navy-soft:    #0A2D4F;
  --navy-mid:     #0D3B63;
  --navy-pale:    #E8EEF4;
  --navy-faint:   rgba(6,32,55,0.05);

  --gold:         #C9A84C;
  --gold-light:   #E2C97E;
  --gold-pale:    #F5EDD6;
  --gold-dark:    #A88B3A;

  --cream:        #FAF6F0;
  --cream-dark:   #F0E9DF;
  --cream-mid:    #F7F1E6;

  --text:         #1A1A2E;
  --text-mid:     #3A3F52;
  --text-soft:    #5A6B7D;
  --text-faint:   #94A3B8;

  --white:        #FFFFFF;
  --danger:       #B8341B;
  --danger-pale:  #FDF0ED;
  --warning:      #B87624;
  --warning-pale: #FEF8F0;

  --shadow-xs:    0 1px 4px rgba(6,32,55,0.05);
  --shadow-sm:    0 2px 12px rgba(6,32,55,0.07);
  --shadow-md:    0 8px 32px rgba(6,32,55,0.1);
  --shadow-lg:    0 16px 48px rgba(6,32,55,0.14);

  --radius:       6px;
  --radius-lg:    12px;
  --transition:   .32s cubic-bezier(.4,0,.2,1);
  --nav-width:    260px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy-soft); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }


/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.policy-hero {
  position: relative;
  background: linear-gradient(165deg, #062037 0%, #041525 55%, #020C16 100%);
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px 90px;
  overflow: hidden;
}

/* Diagonal line texture */
.policy-hero__bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,.018) 0px,
    rgba(255,255,255,.018) 1px,
    transparent 1px,
    transparent 16px
  );
  pointer-events: none;
}

/* Radial gold glow */
.policy-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,168,76,.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative rings */
.policy-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ring-breathe 7s ease-in-out infinite;
}
.policy-hero__ring--1 { width: 280px; height: 280px; animation-delay: 0s; border-color: rgba(201,168,76,0.1); }
.policy-hero__ring--2 { width: 480px; height: 480px; animation-delay: 1.5s; border-color: rgba(201,168,76,0.06); }
.policy-hero__ring--3 { width: 680px; height: 680px; animation-delay: 3s; border-color: rgba(201,168,76,0.03); }

@keyframes ring-breathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.4; transform: translate(-50%, -50%) scale(1.03); }
}

.policy-hero__content { position: relative; z-index: 2; max-width: 660px; }

.policy-hero__brand {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp .7s .1s both;
}
.policy-hero__brand::before,
.policy-hero__brand::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.policy-hero__title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  color: var(--white);
  animation: fadeUp .7s .22s both;
  margin-bottom: 8px;
}
.policy-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.policy-hero__sub {
  margin-top: 18px;
  font-size: .97rem;
  font-weight: 300;
  color: rgba(255,255,255,.48);
  line-height: 1.8;
  animation: fadeUp .7s .34s both;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.policy-hero__date {
  margin-top: 22px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  animation: fadeUp .7s .44s both;
}

.policy-hero__divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: growLine .9s .7s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes growLine {
  from { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  to   { transform: translateX(-50%) scaleY(1); transform-origin: top; }
}


/* ═══════════════════════════════════════════
   PAGE LAYOUT  –  full-width sticky nav + content
═══════════════════════════════════════════ */
.page-layout {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 40px 100px;
  gap: 0 64px;
  align-items: start;
}


/* ═══════════════════════════════════════════
   STICKY SIDE NAVIGATION
═══════════════════════════════════════════ */
.policy-nav {
  position: sticky;
  top: 100px;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid rgba(6,32,55,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp .6s .3s both;
}

.policy-nav__label {
  font-size: .65rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(6,32,55,0.08);
}

.policy-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: .84rem;
  color: var(--text-soft);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  position: relative;
}

.policy-nav__link::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 20px;
  background: var(--navy);
  border-radius: 0 3px 3px 0;
  transition: width 0.3s var(--transition);
}

.policy-nav__link:hover {
  background: var(--navy-pale);
  color: var(--navy);
}

.policy-nav__link.active {
  background: rgba(6,32,55,0.06);
  color: var(--navy);
  font-weight: 500;
}
.policy-nav__link.active::after { width: 3px; }

.policy-nav__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(6,32,55,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-soft);
  transition: background var(--transition), color var(--transition);
}
.policy-nav__icon svg { width: 14px; height: 14px; }

.policy-nav__link.active .policy-nav__icon {
  background: var(--navy);
  color: var(--white);
}
.policy-nav__link:hover .policy-nav__icon {
  background: rgba(6,32,55,0.1);
  color: var(--navy);
}
.policy-nav__link.active:hover .policy-nav__icon {
  background: var(--navy-soft);
  color: var(--white);
}


/* ═══════════════════════════════════════════
   POLICY CONTENT
═══════════════════════════════════════════ */
.policy-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* ── Section ── */
.policy-section {
  padding: 0 0 60px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.4,0,.2,1);
}
.policy-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Header ── */
.policy-section__header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(6,32,55,0.1);
}

.policy-section__number {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  user-select: none;
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
}

.policy-section__header h2 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.policy-section__tagline {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Divider ── */
.policy-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--gold) 0%, rgba(201,168,76,.15) 50%, transparent 100%);
  margin-bottom: 60px;
}


/* ═══════════════════════════════════════════
   POLICY BODY TYPOGRAPHY
═══════════════════════════════════════════ */
.policy-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.policy-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  padding-top: 12px;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.policy-body p {
  font-size: .94rem;
  line-height: 1.9;
  color: var(--text-mid);
  font-weight: 300;
}

.policy-body a {
  color: var(--navy-soft);
  border-bottom: 1px solid rgba(6,32,55,0.2);
  transition: color var(--transition), border-color var(--transition);
}
.policy-body a:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.policy-body strong {
  font-weight: 500;
  color: var(--text);
}

/* Unordered lists */
.policy-body ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.policy-body ul li {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text-mid);
  padding-left: 24px;
  position: relative;
  font-weight: 300;
}

.policy-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  transition: background var(--transition);
}

.policy-body ul li:hover::before {
  background: var(--gold);
}

/* Ordered lists */
.policy-body ol {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: policy-counter;
  list-style: none;
}
.policy-body ol li {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text-mid);
  padding-left: 36px;
  position: relative;
  counter-increment: policy-counter;
  font-weight: 300;
}
.policy-body ol li::before {
  content: counter(policy-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-pale);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ═══════════════════════════════════════════
   CALLOUT BOXES
═══════════════════════════════════════════ */
.policy-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--cream-mid);
  border: 1px solid rgba(6,32,55,0.08);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-top: 8px;
}
.policy-callout svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--navy-soft);
  margin-top: 2px;
}

.policy-callout--warning {
  background: var(--warning-pale);
  border-color: rgba(184,118,36,0.2);
  border-left-color: var(--warning);
}
.policy-callout--warning svg { color: var(--warning); }

.policy-callout--gold {
  background: var(--gold-pale);
  border-color: rgba(201,168,76,0.25);
  border-left-color: var(--gold);
}
.policy-callout--gold svg { color: var(--gold-dark); }


/* ═══════════════════════════════════════════
   ALERT BOX  (Fraud warning)
═══════════════════════════════════════════ */
.policy-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--danger-pale);
  border: 1px solid rgba(184,52,27,0.15);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.75;
  color: #6b2112;
}
.policy-alert svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--danger);
  margin-top: 2px;
}
.policy-alert strong {
  color: var(--danger);
  font-weight: 500;
}


/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
  z-index: 99;
}
.back-top svg { width: 18px; height: 18px; }
.back-top:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.back-top.visible {
  display: flex;
}


/* ═══════════════════════════════════════════
   RESPONSIVE — LAPTOP (≤1200px)
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .page-layout {
    max-width: 100%;
    padding: 56px 32px 80px;
    gap: 0 48px;
  }
  .policy-nav { --nav-width: 240px; }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤960px)
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .policy-hero {
    min-height: 40vh;
    padding: 80px 24px 70px;
  }
  .policy-hero__ring--3 { display: none; }

  .page-layout {
    grid-template-columns: 1fr;
    padding: 40px 24px 64px;
    gap: 0;
  }

  .policy-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 36px;
    border-radius: var(--radius-lg);
  }

  .policy-nav__label {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    white-space: nowrap;
  }

  .policy-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .policy-nav__link {
    padding: 8px 14px;
    font-size: .78rem;
    border-radius: 50px;
  }

  .policy-nav__link::after { display: none; }

  .policy-nav__link.active {
    background: var(--navy);
    color: var(--white)!important;
  }
  .policy-nav__link.active .policy-nav__icon {
    background: rgba(255,255,255,0.15);
    color: var(--white);
  }
  .policy-nav__link:hover {
    background: var(--navy-pale);
    color: var(--navy);
  }
  .policy-nav__link.active:hover {
    background: var(--navy-soft);
    color: var(--white);
  }

  .policy-section__number { font-size: 2.4rem; }
  .policy-section__header h2 { font-size: 1.8rem; }
  .policy-section__header { gap: 18px; margin-bottom: 32px; padding-bottom: 22px; }

  .policy-divider { margin-bottom: 48px; }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤580px)
═══════════════════════════════════════════ */
@media (max-width: 580px) {
  .policy-hero {
    min-height: 36vh;
    padding: 72px 18px 56px;
  }
  .policy-hero__ring--2,
  .policy-hero__ring--3 { display: none; }
  .policy-hero__brand { font-size: .6rem; letter-spacing: .22em; }
  .policy-hero__brand::before,
  .policy-hero__brand::after { width: 24px; }
  .policy-hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .policy-hero__sub { font-size: .88rem; margin-top: 14px; }
  .policy-hero__divider { height: 36px; }

  .page-layout {
    padding: 32px 16px 56px;
  }

  .policy-nav {
    padding: 14px 16px;
    margin-bottom: 28px;
    gap: 10px;
  }
  .policy-nav__label { font-size: .6rem; }
  .policy-nav ul { gap: 5px; }
  .policy-nav__link {
    padding: 7px 12px;
    font-size: .72rem;
    gap: 8px;
  }
  .policy-nav__icon {
    width: 26px; height: 26px;
  }
  .policy-nav__icon svg { width: 12px; height: 12px; }

  .policy-section { padding: 0 0 44px; }

  .policy-section__header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 18px;
  }
  .policy-section__number { font-size: 2rem; }
  .policy-section__header h2 { font-size: 1.5rem; }
  .policy-section__tagline { font-size: .84rem; }

  .policy-body h3 {
    font-size: 1.08rem;
    padding-left: 12px;
    border-left-width: 2px;
  }
  .policy-body p { font-size: .88rem; line-height: 1.85; }
  .policy-body ul li { font-size: .87rem; padding-left: 20px; }
  .policy-body ol li { font-size: .87rem; padding-left: 32px; }

  .policy-callout,
  .policy-alert {
    padding: 16px 16px;
    font-size: .85rem;
    gap: 12px;
  }

  .policy-divider { margin-bottom: 40px; }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .back-top svg { width: 16px; height: 16px; }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤380px)
═══════════════════════════════════════════ */
@media (max-width: 380px) {
  .policy-hero {
    padding: 60px 14px 48px;
    min-height: 32vh;
  }
  .policy-hero__title { font-size: 1.9rem; }
  .policy-hero__sub { font-size: .82rem; }

  .page-layout { padding: 24px 12px 48px; }

  .policy-nav {
    padding: 12px 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .policy-nav__link { font-size: .68rem; padding: 6px 10px; }

  .policy-section__header h2 { font-size: 1.3rem; }
  .policy-body h3 { font-size: 1rem; }
  .policy-body p,
  .policy-body ul li,
  .policy-body ol li { font-size: .82rem; }

  .policy-callout,
  .policy-alert {
    padding: 14px 14px;
    font-size: .82rem;
    flex-direction: column;
    gap: 8px;
  }
}


/* ═══════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: 0.01ms!important;
  }
  .policy-section {
    opacity: 1;
    transform: none;
  }
}

.policy-nav__link:focus-visible,
.back-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ═══════════════════════════════════════════
   PRINT
═══════════════════════════════════════════ */
@media print {
  .policy-nav,
  .back-top,
  .policy-hero__ring,
  .policy-hero__bg-lines,
  .policy-hero__glow { display: none!important; }
  .policy-hero { min-height: auto; padding: 40px 0 30px; background: #fff; }
  .policy-hero__title { color: #000; }
  .policy-hero__title em { color: #333; }
  .policy-hero__sub { color: #666; }
  .policy-hero__brand { color: #999; }
  .page-layout { grid-template-columns: 1fr; padding: 20px 0; }
  .policy-section { opacity: 1; transform: none; }
}