/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #60634B;
  --primary-hover: #515438;
  --primary-light: #F5F5F1;
  --text-heading: #1C1C1A;
  --text-body: #3D3D3A;
  --text-muted: #6E6E68;
  --text-faint: #9A9A93;
  --white: #FFFFFF;
  --bg-page: #FAFAF8;
  --border: #E2E2DA;
  --border-light: #EDEDEA;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}
.nav-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text-heading);
  color: #C8C8C2;
  padding: 52px 24px 0;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #9A9A93;
  max-width: 280px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: #9A9A93;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-copy { font-size: 12px; color: #6E6E68; }
.footer-disclaimer { font-size: 11.5px; color: #5A5A55; max-width: 600px; line-height: 1.5; }

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
}
.legal-back:hover { opacity: 0.8; }
.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.legal-date {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 36px;
}
.legal-page h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-page h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-page p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-page ul {
  margin: 8px 0 16px 20px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
}
.legal-page ul li { margin-bottom: 4px; }
.legal-page a { color: var(--primary); font-weight: 500; }
.legal-page a:hover { text-decoration: underline; }
.legal-page strong { font-weight: 600; color: var(--text-heading); }

/* ===== CHECKOUT ===== */
.checkout-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.checkout-form h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.checkout-form .checkout-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text-body);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group input::placeholder { color: var(--text-faint); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-terms {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.form-terms a { color: var(--primary); font-weight: 500; }
.btn-checkout {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-checkout:hover { background: var(--primary-hover); }
.btn-checkout:active { transform: scale(0.99); }

.order-summary {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  position: sticky;
  top: 84px;
}
.order-summary h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
}
.order-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.order-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}
.order-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}
.order-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}
.order-total-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
}
.order-total-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.order-pix-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.order-pix-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.order-notice {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.55;
}

/* ===== COOKIE MANAGER ===== */
.cookie-manager {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.cookie-manager h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.cookie-manager .cookie-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}
.cookie-category {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-cat-info h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.cookie-cat-info p {
  font-size: 13px;
  color: var(--text-muted);
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }
.cookie-essential-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.btn-save-cookies {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save-cookies:hover { background: var(--primary-hover); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .checkout-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .order-summary { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}
