/* Legal pages + business footer + terms modal */
.legal-page {
  padding: calc(var(--header-h, 64px) + 48px) 0 80px;
  min-height: 60vh;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 32px 0 12px;
  color: var(--white);
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal-content a {
  color: var(--rockstar-yellow);
}

.contact-card {
  border: 1px solid var(--line);
  padding: 24px;
  margin-top: 24px;
  background: var(--bg-card);
}

.contact-card p {
  margin: 0 0 10px;
  font-size: 14px;
}

.contact-card p:last-child { margin-bottom: 0; }

.contact-card strong {
  color: var(--white);
  font-weight: 600;
}

/* Business footer block */
.business-info {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.business-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 10px;
}

.business-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 6px;
  line-height: 1.5;
}

.business-line span {
  color: rgba(255, 255, 255, 0.6);
}

.business-line a {
  color: var(--rockstar-yellow);
}

.business-line a:hover {
  text-decoration: underline;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-legal-nav a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-legal-nav a:hover {
  color: var(--white);
}

.footer-trademark {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 8px;
  max-width: 820px;
}

/* Modal de termos — ~25% da tela */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.terms-modal {
  width: min(400px, 92vw);
  height: 25vh;
  min-height: 200px;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px 20px;
  background: var(--bg-card, #141414);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.terms-modal-title {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white, #fff);
}

.terms-modal-text {
  margin: 0;
  flex: 1;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #8a8a8a);
  overflow-y: auto;
}

.terms-modal-text a {
  color: var(--rockstar-yellow, #fcaf17);
}

.terms-modal-btn {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: none;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--rockstar-yellow, #fcaf17);
  color: var(--black, #000);
  transition: opacity 0.2s;
}

.terms-modal-btn:hover {
  opacity: 0.9;
}

body.terms-modal-open {
  overflow: hidden;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 11px;
}

/* Checkout legal */
.checkout-legal-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.checkout-legal-note a {
  color: var(--rockstar-yellow);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  cursor: pointer;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--rockstar-yellow);
}

.consent-field span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.consent-field a {
  color: var(--rockstar-yellow);
}

.checkout-page-footer {
  border-top: 1px solid var(--line);
  background: var(--black);
  padding: 24px 0 32px;
  margin-top: auto;
}

.checkout-page-footer .container {
  width: min(1100px, 94%);
  margin: 0 auto;
}

@media (max-width: 600px) {
  .terms-modal {
    height: auto;
    min-height: 220px;
    max-height: 32vh;
  }
}
