/*
 * Shared styling for the legal / support pages.
 *
 * Deliberately standalone rather than reusing styles.css: those styles are
 * built around the marketing page's sections and animations, none of which
 * apply here. The design tokens are duplicated so the two stay visually
 * consistent without one page depending on the other's layout rules.
 */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #7d8590;
  --accent: #A855F7;
  --accent-light: #c084fc;
  --glass-border: rgba(139, 148, 158, 0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.brand__mark { display: block; width: auto; height: 24px; }

.lang {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 4px;
}
.lang button {
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

h1 { font-size: 32px; line-height: 1.25; margin-bottom: 8px; }
h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 8px;
  color: var(--text-primary);
}
h3 { font-size: 16px; margin: 24px 0 8px; color: var(--accent-light); }

p, li { color: var(--text-secondary); }
p { margin-bottom: 14px; }

ul { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

a { color: var(--accent-light); }

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

.lede {
  font-size: 17px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}
th { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
td { color: var(--text-secondary); }

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Only one language is shown at a time; i18n toggles the hidden attribute. */
[hidden] { display: none !important; }

@media (max-width: 600px) {
  .wrap { padding: 32px 18px 64px; }
  h1 { font-size: 26px; }
}
