/* ============================================================
   LogInToMy.Club - public legal pages
   ------------------------------------------------------------
   Used by the privacy policy on the marketing domain, which is a
   standalone document rather than part of the portal: it must be
   readable by someone who has never logged in, including the Play
   Store and App Store reviewers who check it before approving.

   Deliberately NOT new-build.css. That stylesheet is ~6800 lines
   of portal components, none of which a page of prose needs, and
   the marketing domain does not load it.

   The brand appears once - the gradient rule under the header -
   and nowhere else. Long-form text wants to be quiet.
   ============================================================ */

:root {
  --legal-ink: #111827;
  --legal-muted: #6B7280;
  --legal-rule: #E5E7EB;
  --legal-accent: #FF751f;
  --legal-gradient: linear-gradient(135deg, #fff967 0%, #FF751f 100%);
  --legal-max: 46rem;
}

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

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: #fff;
  color: var(--legal-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Comfortable for sustained reading rather than scanning. */
  font-size: 1.0625rem;
  line-height: 1.65;
}

.legal-header {
  max-width: var(--legal-max);
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.legal-brand img {
  width: 42px;
  height: 42px;
}

.legal-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-rule {
  max-width: var(--legal-max);
  height: 3px;
  margin: 1rem auto 0;
  background: var(--legal-gradient);
}

main {
  max-width: var(--legal-max);
  margin: 0 auto;
}

h1 {
  margin: 2rem 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 2rem;
  color: var(--legal-muted);
  font-size: 0.9375rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--legal-rule);
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

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

/* The one visually distinct block: who is responsible for what. It is the part
   most people get wrong about a platform like this, so it gets emphasis. */
.legal-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #FFF7ED;
  border-left: 3px solid var(--legal-accent);
  border-radius: 0 8px 8px 0;
}

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

table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--legal-rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--legal-muted);
  font-weight: 600;
}

/* Tables of sub-processors are wide; let them scroll rather than break the page. */
.legal-table-scroll {
  overflow-x: auto;
}

footer {
  max-width: var(--legal-max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--legal-rule);
  color: var(--legal-muted);
  font-size: 0.875rem;
}

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