/* ==========================================================================
   LiteGR · pages.css  ·  v2 Apple-style
   /pages/*.html — privacy, terms, shipping, contact
   ========================================================================== */

@import url("./tokens.css");

.legal {
  padding: calc(var(--nav-h) + 64px) var(--container-pad) 96px;
  background: var(--color-bg);
}
.legal .container { padding: 0; }

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.legal__updated {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-semibold);
  margin-bottom: 16px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 22px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 16px;
  max-width: 64ch;
}

.legal a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition);
}
.legal a:hover {
  color: var(--color-accent-hover);
  text-decoration-thickness: 2px;
}

.legal ul {
  margin-bottom: 16px;
  padding-left: 0;
}
.legal ul li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 8px;
}

.legal__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.legal__contact-list li { font-size: 17px; }

/* ---- Cart panel (reused) ----------------------------------------- */
.cart-panel { position: fixed; inset: 0; z-index: var(--z-modal); pointer-events: none; }
.cart-panel[hidden] { display: none !important; }
.cart-panel:not([hidden]) { pointer-events: auto; }
.cart-panel__overlay { position: absolute; inset: 0; background: rgba(31,31,31,0); transition: background var(--transition-slow); }
.cart-panel.is-open .cart-panel__overlay { background: rgba(31,31,31,0.40); -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px); }
.cart-panel__content { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; background: var(--color-bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--transition-slow); box-shadow: -24px 0 60px rgba(0,0,0,0.12); }
.cart-panel.is-open .cart-panel__content { transform: translateX(0); }
.cart-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--color-border); }
.cart-panel__title { font-size: 18px; font-weight: var(--weight-semibold); }
.cart-panel__close { width: var(--touch-target); height: var(--touch-target); border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; }
.cart-panel__items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-panel__empty { text-align: center; color: var(--color-text-tertiary); padding: 56px 16px; font-size: 15px; }
.cart-panel__footer { padding: 20px 24px 24px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 12px; }
.cart-panel__subtotal { display: flex; justify-content: space-between; font-size: 17px; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.cart-panel__view-link { text-align: center; font-size: 14px; color: var(--color-text-tertiary); padding: 6px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--color-bg-alt); object-fit: cover; }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-weight: var(--weight-semibold); font-size: 15px; }
.cart-item__color { font-size: 12px; color: var(--color-text-tertiary); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); }
.qty-stepper button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border-radius: var(--radius-pill); }
.qty-stepper .qty-value { width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); font-size: 14px; }
.cart-item__price { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; font-size: 15px; }
