/* =========================
   Pasavouch Terms & Conditions — Header, Main & Footer
   (scoped with .pv-terms)
========================= */

html.pv-terms,
.pv-terms body {
  margin: 0;
  padding: 0;
}

/* =========================
   CONTAINER (Desktop)
========================= */
.pv-terms .pv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* --- CONTAINER (Mobile ≤1024px) --- */
@media (max-width: 1024px) {
  .pv-terms .pv-header > .pv-container {
    width: 100%;            /* avoid 100vw jump */
    max-width: 100%;
    padding-inline: 12px;
    box-sizing: border-box;
  }
}

/* =========================
   HEADER (Desktop)
========================= */
.pv-terms .pv-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: #004364;
  border-bottom: 1px solid #00344d;
}
.pv-terms .pv-header .pv-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 96px; /* fixed */
}
.pv-terms .pv-brand { display: flex; align-items: center; }
.pv-terms .pv-brand img {
  display: block;
  height: 64px;
  max-height: 68px;
  width: auto;
}
.pv-terms .pv-nav { display: flex; gap: 24px; justify-content: center; }
.pv-terms .pv-nav a { color:#fff; text-decoration:none; font-weight:600; font-size:0.96rem; }
.pv-terms .pv-nav a:hover,
.pv-terms .pv-nav a:focus { color:#ffd814; }
.pv-terms .pv-burger {
  display: none;
  font-size: 1.6rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  justify-self: end;
}
/* content offset */
.pv-terms .pv-main { padding-top: 96px; }

/* --- HEADER (Mobile ≤1024px) --- */
@media (max-width: 1024px) {
  .pv-terms .pv-header > .pv-container {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
    box-sizing: border-box;
  }
  .pv-terms .pv-header .pv-container { height: 100px; }
  .pv-terms .pv-nav { display: none; }
  .pv-terms .pv-burger { display: inline-block; }
  .pv-terms .pv-brand img { height: 80px; max-height: 90px; }
  .pv-terms .pv-main { padding-top: 100px; }
}

@media (max-width: 640px) {
  .pv-terms .pv-header .pv-container { height: 96px; }
  .pv-terms .pv-brand img { height: 72px; max-height: 82px; }
  .pv-terms .pv-main { padding-top: 96px; }
}

@media (max-width: 520px) {
  .pv-terms .pv-header .pv-container { height: 90px; }
  .pv-terms .pv-brand img { height: 68px; max-height: 78px; }
  .pv-terms .pv-main { padding-top: 90px; }
}

/* =========================
   DRAWER (Desktop)
========================= */
.pv-terms .pv-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  z-index: 2000; /* above header */
}
.pv-terms .pv-drawer.open { display: block; }

.pv-terms .pv-drawer-nav {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(85vw, 360px);
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: -12px 0 24px rgba(0,0,0,.08);
  z-index: 2001; /* panel above overlay */
}
.pv-terms .pv-drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.pv-terms .pv-drawer-nav a {
  color: #1f2a37;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 8px;
}
.pv-terms .pv-drawer-nav a:hover,
.pv-terms .pv-drawer-nav a:focus { background: #f3f7fb; }

/* --- DRAWER (Mobile ≤1024px) --- */
@media (max-width: 1024px) {
  .pv-terms .pv-drawer-nav {
    width: clamp(240px, 62vw, 280px);
    padding: 20px 16px;
    gap: 12px;
    border-left: 1px solid #e5eef5;
  }
  .pv-terms .pv-drawer-nav a {
    font-size: 0.95rem;
    padding: 10px 8px;
  }
}

@media (max-width: 520px) {
  .pv-terms .pv-drawer-nav { width: clamp(220px, 70vw, 248px); }
}

/* =========================
   MAIN (Desktop)
========================= */
.pv-terms .pv-main-spacer { padding-block: 32px; }
.pv-terms .pv-title   { font-size: clamp(1.8rem, 2.4vw, 2.25rem); margin: 0 0 6px; color: #111827; }
.pv-terms .pv-updated { color: #6b7280; margin: 0 0 24px; }

/* =========================
   FOOTER (Desktop)
========================= */
.pv-terms .pv-footer {
  margin-top: 48px;
  background: linear-gradient(135deg, #004364, #0b6cab);
  color: #fff;
}
.pv-terms .pv-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 36px 20px;
}
.pv-terms .pv-foot-col h4 { font-size: 1.15rem; margin: 0 0 8px; }
.pv-terms .pv-foot-col h5 { font-size: 1rem; margin: 0 0 10px; color: #ffd814; }
.pv-terms .pv-foot-col a,
.pv-terms .pv-foot-col p {
  display: block;
  color: #e6f1f7;
  text-decoration: none;
  margin: 6px 0;
  font-size: 0.95rem;
}
.pv-terms .pv-foot-col a:hover { text-decoration: underline; }
.pv-terms .pv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 12px 0;
  font-size: 0.9rem;
  color: #eaf6ff;
}

/* --- FOOTER (Mobile ≤1024px) --- */
@media (max-width: 1024px) {
  .pv-terms .pv-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pv-terms .pv-footer-grid { grid-template-columns: 1fr; }
}