/* Bravo!app legal pages — one plain style: dark text on a light background, system fonts, readable on a phone.
   No outside fonts, images or imports. Served as /legal.css from the page's own origin. */

:root {
  color-scheme: light;
  --fg: #1b1b1f;
  --muted: #4d5058;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --line: #cfd3da;
  --accent: #0a58b5;
  --accent-dark: #083f82;
  --ok: #0b6b2f;
  --err: #a1200f;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

.site,
main {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site {
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

main {
  padding-bottom: 3rem;
}

.brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

nav .lang {
  margin-left: auto;
}

h1 {
  margin: 1.5rem 0 1rem;
  font-size: 1.6rem;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0.75rem 0;
}

ul {
  margin: 0.75rem 0;
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

li > ul {
  margin: 0.3rem 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 2px;
}

.table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

th,
td {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: var(--bg-soft);
}

/* The deletion page */

.card,
.notice {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--fg);
  background: #ffffff;
  border: 1px solid #8b909a;
  border-radius: 0.375rem;
}

input:disabled {
  color: var(--muted);
  background: var(--bg-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

button {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.375rem;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

button.secondary {
  color: var(--accent);
  background: #ffffff;
}

button.secondary:hover:not(:disabled) {
  color: #ffffff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#verify-form {
  margin-top: 1rem;
}

.status {
  margin: 1rem 0 0;
  font-weight: 600;
}

.status:empty {
  display: none;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--err);
}

.note {
  color: var(--muted);
  font-size: 0.925rem;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.4rem;
  }

  nav .lang {
    margin-left: 0;
  }

  button {
    flex: 1 1 100%;
  }
}
