:root {
  --background: #020202;
  --panel: #090909;
  --panel-soft: #101010;
  --gold: #d8ad35;
  --gold-light: #f5d979;
  --red: #b90020;
  --text: #f7f7f7;
  --muted: #b3b3b3;
  --border: rgba(216, 173, 53, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 85% 4%,
      rgba(216, 173, 53, 0.11),
      transparent 24rem
    ),
    var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 2, 2, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.back-link {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #080808;
  color: #ededed;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.back-link:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

main {
  min-height: calc(100vh - 160px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 173, 53, 0.15);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.62)),
    url("/logo-header-clube-do-rei.png?v=30") right 10% center / 400px auto
      no-repeat;
  opacity: 0.26;
}

.hero-glow {
  position: absolute;
  top: -140px;
  right: 7%;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(216, 173, 53, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 80px rgba(216, 173, 53, 0.16),
    inset 0 0 70px rgba(216, 173, 53, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 66px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(54px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 0.95;
}

.hero p {
  max-width: 670px;
  margin-top: 18px;
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.65;
}

.updated {
  width: fit-content;
  margin-top: 26px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(10, 10, 10, 0.8);
  color: #c9c9c9;
  font-size: 11px;
  font-weight: 700;
}

.updated span {
  color: var(--gold);
  font-size: 9px;
}

.page-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 70px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.table-of-contents {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #0c0c0c, #070707);
}

.table-of-contents strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.7px;
}

.table-of-contents nav {
  display: grid;
}

.table-of-contents a {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #aaa;
  font-size: 11px;
  line-height: 1.35;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.table-of-contents a:last-child {
  border-bottom: 0;
}

.table-of-contents a:hover {
  padding-left: 5px;
  color: var(--gold-light);
}

.terms-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.96),
    rgba(6, 6, 6, 0.98)
  );
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.intro-notice {
  margin: 30px 30px 0;
  padding: 18px 20px;
  border: 1px solid rgba(216, 173, 53, 0.3);
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  background: linear-gradient(
    110deg,
    rgba(216, 173, 53, 0.12),
    rgba(216, 173, 53, 0.025)
  );
}

.intro-notice svg {
  width: 30px;
  height: 30px;
  color: var(--gold-light);
}

.intro-notice p {
  color: #dedede;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.term-section {
  scroll-margin-top: 100px;
  padding: 34px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.term-section:last-child {
  border-bottom: 0;
}

.section-number {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #080808;
  color: var(--gold-light);
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  box-shadow: inset 0 0 18px rgba(216, 173, 53, 0.06);
}

.term-section h2 {
  margin: 3px 0 18px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 1.05;
}

.term-section p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.term-section p:last-child {
  margin-bottom: 0;
}

.term-section ul {
  margin: 2px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.term-section li {
  position: relative;
  padding-left: 23px;
  color: #c4c4c4;
  font-size: 13px;
  line-height: 1.6;
}

.term-section li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.contact-button {
  min-height: 44px;
  width: fit-content;
  margin-top: 6px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d20b2e, #8f0018);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(185, 0, 32, 0.18);
}

.final-section {
  background: linear-gradient(110deg, rgba(216, 173, 53, 0.075), transparent);
}

.final-section .section-number {
  border-color: rgba(216, 173, 53, 0.45);
  color: var(--gold-light);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #030303;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  color: #777;
  font-size: 11px;
}

.footer-inner img {
  width: 140px;
  height: 52px;
  object-fit: contain;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner a:hover,
.footer-inner a[aria-current="page"] {
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
  }

  .table-of-contents nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-content,
  .page-layout,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    max-width: 175px;
    height: 44px;
  }

  .back-link {
    min-height: 36px;
    padding: 0 11px;
    font-size: 9px;
  }

  .back-link svg {
    width: 15px;
    height: 15px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.7)),
      url("/logo-header-clube-do-rei.png?v=30") right -60px center / 270px auto
        no-repeat;
  }

  .hero-content {
    padding: 52px 0 48px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero p {
    font-size: 13px;
  }

  .page-layout {
    margin: 24px auto 42px;
    gap: 18px;
  }

  .table-of-contents {
    padding: 18px;
  }

  .table-of-contents nav {
    grid-template-columns: 1fr;
  }

  .terms-card {
    border-radius: 13px;
  }

  .intro-notice {
    margin: 18px 16px 0;
    padding: 15px;
    align-items: start;
  }

  .intro-notice svg {
    width: 25px;
    height: 25px;
  }

  .term-section {
    padding: 27px 17px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
  }

  .section-number {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 17px;
  }

  .term-section h2 {
    margin-top: 2px;
    font-size: 25px;
  }

  .term-section p {
    font-size: 13px;
    line-height: 1.72;
  }

  .contact-button {
    width: 100%;
    padding: 0 12px;
    font-size: 10px;
  }

  .footer-inner {
    padding: 28px 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }
}

@media print {
  .site-header,
  .table-of-contents,
  .site-footer,
  .back-link {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero::before,
  .hero-glow {
    display: none;
  }

  .hero {
    border-bottom: 1px solid #ccc;
  }

  .hero-content {
    width: 100%;
    padding: 30px 0;
  }

  .hero h1,
  .hero p,
  .eyebrow {
    color: #111;
  }

  .page-layout {
    width: 100%;
    margin: 0;
    display: block;
  }

  .terms-card {
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .term-section,
  .intro-notice {
    break-inside: avoid;
    border-color: #ddd;
    background: #fff;
  }

  .term-section h2,
  .term-section p,
  .term-section li,
  .intro-notice p {
    color: #111;
  }
}
