/* Terms & Conditions – premium neon-arcade styling */

.hero-preamble {
  text-align: center;
  padding: var(--space-12) 0 var(--space-8);
}
.hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xl);
}
.hero-text h1 {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-4);
}
.lead {
  font-size: var(--font-size-xl);
  max-width: 60ch;
  margin: 0 auto var(--space-4);
  color: var(--color-text-secondary);
}

.ownership-authenticity,
.shipping-covenant {
  margin: var(--space-16) 0;
}
.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.cert-img {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-4);
}
.curator-note {
  font-style: italic;
  color: var(--color-text-muted);
}

.warranty-grid {
  margin: var(--space-16) 0;
}
.warranty-grid .grid {
  gap: var(--space-4);
}
.tile {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-base);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  transform-style: preserve-3d;
}
.tile:hover {
  transform: rotateY(180deg);
  box-shadow: var(--shadow-neon-pink);
}
.tile-front, .tile-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tile-back {
  position: absolute;
  inset: 0;
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-base);
}
.tile .icon {
  font-size: var(--font-size-4xl);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.tile.not-covered {
  border: 1px solid var(--color-gray-700);
}

.returns-timeline {
  margin: var(--space-16) 0;
}
.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: var(--space-8) 0;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gray-700);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.node {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-4);
  background: var(--color-gray-800);
  border-radius: 50%;
  border: 2px solid var(--color-gray-700);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.step[data-days]:hover .node {
  background: var(--color-primary);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-neon-pink);
}
.step h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.shipping-covenant .case-img {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
}
.delivery-tiers .tier {
  background: var(--color-bg-secondary);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border-left: 4px solid var(--color-accent-chrome);
  border-radius: var(--radius-base);
}
.map-overlay {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-base);
  text-align: center;
  font-weight: var(--font-weight-semibold);
}

.ip-rom-notice {
  margin: var(--space-16) 0;
}
.accordion {
  list-style: none;
}
.accordion li {
  border-bottom: 1px solid var(--color-gray-700);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
}
.accordion-trigger[aria-expanded="true"] {
  color: var(--color-primary);
}
.verified-badge {
  margin-left: var(--space-2);
  color: var(--color-success);
}
.accordion-panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  display: none;
}
.accordion-panel[hidden] {
  display: none;
}
.thumb {
  width: 80px;
  height: auto;
  border-radius: var(--radius-sm);
}

.community-code {
  margin: var(--space-16) 0;
}
.card-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.card-stack .card {
  position: relative;
  padding: var(--space-6);
}
.avatar {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  image-rendering: pixelated;
  background-size: contain;
  background-repeat: no-repeat;
}
.pixel-mario { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5' y='1' width='2' height='1' fill='%23ffcc00'/%3E%3Crect x='4' y='2' width='4' height='1' fill='%23ffcc00'/%3E%3Crect x='3' y='3' width='6' height='1' fill='%23ffcc00'/%3E%3Crect x='2' y='4' width='8' height='1' fill='%23ffcc00'/%3E%3Crect x='1' y='5' width='10' height='1' fill='%23ffcc00'/%3E%3Crect x='1' y='6' width='2' height='1' fill='%230057a3'/%3E%3Crect x='3' y='6' width='2' height='1' fill='%23c8c8cc'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23ffcc00'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='8' y='6' width='2' height='1' fill='%23c8c8cc'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%230057a3'/%3E%3C/svg%3E"); }
.pixel-ghost { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='4' y='2' width='8' height='8' fill='%23fff'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23fff'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='11' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='10' y='8' width='1' height='1' fill='%23fff'/%3E%3C/svg%3E"); }
.pixel-rocket { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='7' y='1' width='2' height='10' fill='%23c8c8cc'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23ff2a6d'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23ff2a6d'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ff2a6d'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23ff2a6d'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ff2a6d'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23ff2a6d'/%3E%3Crect x='7' y='11' width='2' height='1' fill='%2300d9ff'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%2300d9ff'/%3E%3Crect x='9' y='12' width='1' height='1' fill='%2300d9ff'/%3E%3Crect x='7' y='13' width='2' height='1' fill='%2300d9ff'/%3E%3C/svg%3E"); }

.privacy-data-policy {
  margin: var(--space-16) 0;
}
.neon-progress {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-base);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.progress-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-neon-blue) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-cinematic);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
}
.progress-labels li {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.opt-outs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.chrome-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.chrome-toggle input {
  width: 40px;
  height: 20px;
  appearance: none;
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-base);
}
.chrome-toggle input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-gray-300);
  border-radius: 50%;
  transition: transform var(--transition-base);
}
.chrome-toggle input:checked {
  background: var(--color-primary);
}
.chrome-toggle input:checked::before {
  transform: translateX(20px);
  background: var(--color-text-primary);
}

.dispute-resolution {
  margin: var(--space-16) 0 var(--space-24);
}
.calm-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg-elevated);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.calm-panel ul {
  text-align: left;
  margin-bottom: var(--space-6);
}
.calm-panel li {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

.accept-bar {
  position: sticky;
  bottom: 0;
  background: var(--color-bg-overlay);
  backdrop-filter: blur(8px);
  padding: var(--space-4) 0;
  text-align: center;
  box-shadow: 0 -4px 24px rgba(0,0,0,.6);
  z-index: var(--z-fixed);
}
.accept-bar p {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  .stepper {
    flex-direction: column;
    gap: var(--space-6);
  }
  .stepper::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 20px;
  }
  .progress-labels {
    flex-direction: column;
    gap: var(--space-2);
  }
}
