/* +Tennis — base compartilhada (cabeçalho, rodapé, botões, páginas legais) */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --purple: #6D4AFF;
  --purple-dark: #4C2FD6;
  --purple-tint: #EFEBFF;
  --lime: #C6F135;
  --lime-ink: #2B3B00;
  --ink: #17151F;
  --ink-2: #5B5768;
  --ink-3: #8A869A;
  --line: #E7E3F0;
  --paper: #FBFAFE;
  --card: #FFFFFF;
  --warn-bg: #FDF3E7;
  --warn-border: #E9C793;
  --warn-ink: #7A4E0E;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 254, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

/* O ícone tem margem branca em volta da bola: ampliamos pra bola preencher o círculo. */
.logo img {
  display: block;
  width: 74px;
  max-width: none;
  height: 74px;
  margin: -14px 0 0 -14px;
}

/* Logo completa (bola + "+Tennis") */
.brand {
  display: block;
  flex: none;
}

.brand img {
  display: block;
  height: 54px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a.nav-link:hover { color: var(--ink); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  background: var(--ink);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
  background: var(--purple-dark);
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .brand img { height: 72px; }

.footer-brand p {
  margin: 14px 0 0;
  max-width: 260px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-col a:hover { color: var(--purple); }

.footer-copy {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- Páginas de texto (termos, política, exclusão de conta) ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.legal .doc-head {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.legal .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 10px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}

.legal .updated { font-size: 14px; color: var(--ink-3); margin: 0; }

.legal .lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 20px 0 0;
}

.legal .callout {
  background: var(--purple-tint);
  border: 1px solid #D8D0FF;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 20px 0 0;
}

.legal .callout strong { color: #3C2E8C; }

.legal .print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 18px;
}

.legal .print-btn:hover { border-color: var(--purple); color: var(--purple); }

.legal nav.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 20px;
  margin-bottom: 32px;
}

.legal nav.toc summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  display: block;
  list-style: none;
}

.legal nav.toc summary::-webkit-details-marker { display: none; }
.legal nav.toc summary::after { content: "▾"; float: right; color: var(--ink-3); }
.legal nav.toc[open] summary::after { content: "▴"; }

.legal .toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px 20px;
  margin-top: 14px;
}

.legal .toc-grid a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.legal .toc-grid a:hover { color: var(--purple); }

.legal section { margin: 0 0 32px; scroll-margin-top: 84px; }

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.legal h2 .num {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
}

.legal h3 { font-size: 15.5px; font-weight: 600; margin: 18px 0 8px; }

.legal p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 12px; }
.legal p strong,
.legal li strong { color: var(--ink); }

.legal ul,
.legal ol { margin: 0 0 12px; padding-left: 22px; }

.legal li { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 6px; }

.legal .emphasis-block {
  background: #F3F0FB;
  border-left: 3px solid var(--purple);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 0 0 12px;
}

.legal .emphasis-block p { margin: 0; color: var(--ink); font-weight: 500; }

.legal a.contact,
.legal p a,
.legal li a { color: var(--purple); font-weight: 600; text-decoration: none; }

.legal a.contact:hover,
.legal p a:hover,
.legal li a:hover { text-decoration: underline; }

.legal .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 14px;
  font-size: 14.5px;
}

.legal .data-table th,
.legal .data-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal .data-table th { width: 30%; color: var(--ink); font-weight: 600; }
.legal .data-table td { color: var(--ink-2); }
.legal .data-table td strong { color: var(--ink); }

.legal .pend {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px dashed var(--warn-border);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.95em;
}

.legal .doc-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.legal .steps { counter-reset: passo; list-style: none; padding: 0; margin: 0 0 16px; }

.legal .steps li {
  counter-increment: passo;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
}

.legal .steps li::before {
  content: counter(passo);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #FFF;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

@media (max-width: 560px) {
  .brand img { height: 46px; }
  .container,
  .legal { padding-left: 18px; padding-right: 18px; }
  .legal .data-table th,
  .legal .data-table td { display: block; width: 100%; padding: 4px 0; border-bottom: none; }
  .legal .data-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .print-btn { display: none; }
  body { background: #fff; }
}
