/* ─────────────────────────────────────────────────
   WE:DIGITEK — Shared Styles v2
───────────────────────────────────────────────── */
:root {
  --primary:      #0066ff;
  --primary-dark: #0047b3;
  --primary-soft: #e3ecff;
  --bg:           #f7f7f9;
  --card-bg:      #ffffff;
  --border:       #e0e0e6;
  --text:         #222222;
  --text-muted:   #6b7280;
  --heading:      #111827;
  --header-h:     62px;
  --radius:       14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── HEADER ──────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* brand */
.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand em { color: var(--primary); font-style: normal; }
.brand-logo { height: 36px; width: auto; display: block; }
.footer-logo { height: 32px; width: auto; display: block; margin-bottom: 4px; }

/* nav */
#main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
#main-nav::-webkit-scrollbar { display: none; }

.nav-link {
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-link:hover  { background: var(--primary-soft); color: var(--primary); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* lang switcher → country switcher */
.country-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.country-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.country-select {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  padding: 4px 24px 4px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 8px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s;
  max-width: 180px;
}
.country-select:hover,
.country-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* country legal table */
.country-table td:first-child {
  width: 35%;
  white-space: nowrap;
}
.country-table a {
  color: var(--primary);
  text-decoration: none;
}
.country-table a:hover {
  text-decoration: underline;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #003d99 0%, #0057d9 45%, #0066ff 75%, #338bff 100%);
  color: #fff;
  padding: 58px 24px 50px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero .subtitle {
  font-size: .95rem;
  opacity: .85;
  margin-bottom: 4px;
}
.hero .meta {
  font-size: .77rem;
  opacity: .6;
  margin-bottom: 18px;
}
.hero .commitment {
  font-size: .88rem;
  background: rgba(255,255,255,.12);
  border-left: 3px solid rgba(255,255,255,.5);
  border-radius: 0 10px 10px 0;
  padding: 11px 15px;
}

/* ── MAIN CONTAINER ──────────────────────────── */
.page-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── POLICY CARD ─────────────────────────────── */
.policy-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}

.card-body { padding: 22px 26px; }

/* ── SECTION CONTENT ─────────────────────────── */
.section-block { margin-bottom: 22px; }
.section-block:last-child { margin-bottom: 0; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 9px;
}

.intro-text {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.body-text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.68;
  margin-bottom: 10px;
}
.body-text:last-child { margin-bottom: 0; }

ul.dot-list {
  list-style: none;
  padding: 0;
}
ul.dot-list li {
  font-size: .88rem;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--bg);
  line-height: 1.55;
  color: var(--text);
}
ul.dot-list li:last-child { border-bottom: none; }
ul.dot-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 3px;
  top: 12px;
}

/* table */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 4px;
  font-size: .86rem;
}
.policy-table th,
.policy-table td {
  border: 1px solid var(--border);
  padding: 8px 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.policy-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: var(--heading);
  font-size: .82rem;
}
.policy-table tr:nth-child(even) td { background: #fafafa; }

/* note box */
.note-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--primary-soft);
  border-radius: 9px;
  font-size: .83rem;
  color: var(--primary-dark);
  line-height: 1.55;
}

/* highlight card (e.g. no-sale) */
.highlight-card .card-header {
  background: #fff8e1;
  border-bottom-color: #ffe082;
}
.highlight-card .card-icon { background: #fff3cd; }

/* ── INDEX PAGE: POLICY GRID ─────────────────── */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  padding: 40px 20px 72px;
  max-width: 960px;
  margin: 0 auto;
}

.policy-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 3px 14px rgba(15,23,42,.05);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.policy-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,102,255,.13);
  border-color: var(--primary);
}

.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.tile-title {
  font-size: .98rem;
  font-weight: 600;
  color: var(--heading);
}
.tile-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.tile-arrow {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

/* ── FOOTER ──────────────────────────────────── */
#site-footer {
  background: var(--heading);
  color: rgba(255,255,255,.7);
  padding: 38px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .81rem;
}
.footer-col strong {
  display: block;
  font-size: .98rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-col a { color: #93c5fd; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-entity { font-size: .75rem; opacity: .7; font-style: italic; }

/* ── SCROLL-TO-TOP ───────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0,102,255,.38);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: background .15s;
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: var(--primary-dark); }

/* ── HAMBURGER BUTTON ─────────────────────────── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 700px) {
  .menu-btn { display: flex; }
  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 18px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    z-index: 200;
  }
  #main-nav.open { display: flex; }
  .nav-link { font-size: .85rem; padding: 8px 10px; }
  .header-inner { gap: 8px; padding: 0 14px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px 16px; }
  .hero { padding: 42px 16px 36px; }
  .country-table td:first-child { white-space: normal; width: auto; }
  .country-select { max-width: 140px; font-size: .72rem; }
}
