/* Páginas públicas do Solitaire (suporte e política de privacidade). Cores dos tokens do app (Color+Tokens.swift). */
:root {
  --felt: #0e3323;
  --felt-light: #184d36;
  --panel: rgba(0, 0, 0, 0.22);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f4ed;
  --text-secondary: rgba(247, 244, 237, 0.72);
  --text-tertiary: rgba(247, 244, 237, 0.5);
  --card: #f2efeb;
  --on-card: #0e3323;
  --gold: #ffe1a6;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--felt);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--felt-light) 0%, rgba(24, 77, 54, 0) 70%),
    var(--felt);
  background-attachment: fixed;
}

/* Textura leve de feltro, como a mesa do app */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  font-size: 14px;
}

.top a {
  color: var(--text-secondary);
  text-decoration: none;
}

.top a:hover {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.top .brand {
  color: var(--text);
}

.language {
  padding: 4px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}

.hero {
  text-align: center;
  margin: 8px 0 48px;
}

.hero img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

h1 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 auto;
  max-width: 30em;
  color: var(--text-secondary);
  font-size: 18px;
}

h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.page-title {
  margin: 0 0 6px;
  text-align: left;
}

.updated {
  margin: 0 0 32px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.panel {
  margin: 0 0 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
}

.panel p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

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

.panel a {
  color: var(--text);
  text-decoration-color: rgba(247, 244, 237, 0.4);
  text-underline-offset: 3px;
}

.label {
  margin: 36px 0 12px 4px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 26px;
  color: var(--on-card);
  background: var(--card);
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.panel .button {
  color: var(--on-card);
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.note {
  margin-top: 14px !important;
  color: var(--text-tertiary) !important;
  font-size: 14px;
}

details {
  border-top: 1px solid var(--panel-border);
}

details:first-of-type {
  border-top: none;
}

summary {
  position: relative;
  padding: 16px 32px 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

details p {
  margin: 0 0 16px !important;
}

.faq {
  padding-top: 8px;
  padding-bottom: 8px;
}

footer {
  margin-top: 48px;
  color: var(--text-tertiary);
  font-size: 14px;
  text-align: center;
}

footer a {
  color: var(--text-secondary);
}

.suits {
  margin-bottom: 8px;
  letter-spacing: 0.5em;
  color: var(--text-tertiary);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .panel {
    padding: 20px;
  }

  .button {
    display: block;
    text-align: center;
  }
}
