/* ForFuture legal & support subpages — shared with landing header */
:root {
  --brand: #00d2ff;
  --brand-deep: #00a8cc;
  --bg: #ecfafe;
  --card: #ffffff;
  --text: #111318;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #cceef8;
  --accent-soft: #d6f4fc;
  --cta: #111318;
  --cta-hover: #2a2f36;
  --shadow: 0 1px 3px rgba(17, 19, 24, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 168, 204, 0.12);
  --radius-card: 20px;
  --radius-pill: 999px;
  --max-w: 900px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --warning-bg: #fff8eb;
  --warning-border: #f59e0b;
  --warning-text: #92400e;
}

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

body {
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-decoration: underline;
}

a:hover {
  color: var(--cta);
}

/* Subpage header — matches index.html site-header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111318;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  gap: 24px;
}

.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.logo-wordmark-header {
  display: block;
  height: 28px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-wordmark-header {
    height: 36px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch-btn {
  min-width: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.lang-switch-btn:hover {
  color: #fff;
}

.lang-switch-btn.is-active {
  background: #fff;
  color: #111318;
}

.subpage-main {
  padding: 32px 20px 48px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

h1 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95em;
}

.policy-content,
.content {
  display: none;
}

.policy-content.active,
.content.active {
  display: block;
}

.policy-content h2,
.content h2,
.support-section h2 {
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 1.45em;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.policy-content h2:first-child,
.content h2:first-child {
  margin-top: 0;
}

.policy-content h3,
.content h3 {
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.15em;
  font-weight: 600;
}

.policy-content p,
.content p,
.support-section p {
  margin-bottom: 14px;
  text-align: justify;
  color: var(--text-secondary);
}

.policy-content ul,
.policy-content ol,
.content ul,
.content ol {
  margin-left: 20px;
  margin-bottom: 14px;
}

.policy-content li,
.content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.policy-content strong,
.content strong {
  color: var(--text);
}

.policy-content table,
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92em;
}

.policy-content th,
.policy-content td,
table th,
table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.policy-content th,
table th {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.info-box {
  background: var(--accent-soft);
  padding: 16px 18px;
  border-radius: 14px;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
}

.info-box p {
  margin-bottom: 8px;
}

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

.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 16px 18px;
  margin: 20px 0;
  border-radius: 14px;
}

.warning-box p {
  color: var(--warning-text);
  margin-bottom: 0;
}

.step-box {
  background: var(--bg);
  border-left: 4px solid var(--brand);
  padding: 16px 18px;
  margin: 16px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85em;
  margin-right: 8px;
  vertical-align: middle;
}

.contact-info {
  background: var(--bg);
  padding: 20px;
  border-radius: 14px;
  margin-top: 28px;
  border: 1px solid var(--border);
}

.contact-info p {
  margin-bottom: 8px;
}

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

.support-section {
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95em;
  border: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.footer-links {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92em;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.app-name,
.developer-name {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
  .container {
    padding: 24px 20px;
  }

  h1 {
    font-size: 1.55em;
  }

  .policy-content h2,
  .content h2 {
    font-size: 1.25em;
  }

  .policy-content table,
  table {
    font-size: 0.8em;
  }
}
