/* GlassyWidgets theme - Legal pages */
:root {
  --bg-primary: #0B0B0F;
  --bg-secondary: #111116;
  --gold: #DAA520;
  --gold-light: #F5D76E;
  --gold-warm: #B8860B;
  --gold-deep: #8B6914;
  --text: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
  --glass-overlay: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.lang-toggle button {
  background: var(--glass-overlay);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.lang-toggle button:hover,
.lang-toggle button.active {
  background: var(--glass-highlight);
  border-color: var(--gold);
  color: var(--gold-light);
}

.top-links {
  margin-bottom: 1.5rem;
}

.top-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.top-links a:hover {
  border-bottom-color: var(--gold);
}

.content-section h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem 0;
}

.support-email {
  color: var(--gold);
  text-decoration: none;
}

.support-email:hover {
  text-decoration: underline;
}

.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.app-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.app-links a:hover {
  border-bottom-color: var(--gold);
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
}

.content-section ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-muted);
}

[data-lang] {
  display: none;
}

[data-lang="en"] {
  display: block; /* default before JS */
}

[data-lang].active {
  display: block;
}

[data-lang]:not(.active) {
  display: none !important;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  text-decoration: underline;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
