/* Shared presentation for the legal pages: legal.html (hub + compliance +
   contact), privacy.html and terms.html. Extracted from legal.html's inline
   <style> so the three pages cannot drift apart visually. */
  body {
    font-family: var(--outfit);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(255, 46, 147, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 90% 80%, rgba(0, 245, 212, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
  }
  main {
    max-width: 900px;
    margin: 40px auto;
    padding: 32px;
    box-sizing: border-box;
  }
  h1, h2, h3, h4 {
    font-family: var(--goldman);
    font-weight: 600;
    margin-top: 1.6em;
    letter-spacing: 0.5px;
  }
  h1 {
    font-size: 2.2rem;
    margin-top: 0;
    background: linear-gradient(135deg, var(--retro-pink), var(--mint-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.2);
  }
  h2 {
    font-size: 1.6rem;
    color: var(--mint-green);
    border-bottom: 1.5px solid var(--glass-border);
    padding-bottom: 8px;
  }
  h3 {
    font-size: 1.25rem;
    color: var(--electric-lime);
  }
  h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--retro-pink);
  }
  p {
    margin: 0.6em 0 1em;
    color: var(--text-secondary);
    line-height: 1.7;
  }
  ul {
    margin: 0.4em 0 1.2em 1.4em;
    color: var(--text-secondary);
  }
  li {
    margin: 0.3em 0;
  }
  hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--glass-border);
  }
  /* Contact box */
  #contact-us { scroll-margin-top: 24px; }

  .contact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
    margin-top: 1.2em;
  }

  .contact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }

  .contact-field { margin-bottom: 16px; }

  .contact-field label {
    display: block;
    font-family: var(--goldman);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mint-green);
    margin-bottom: 6px;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--outfit);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .contact-field textarea { resize: vertical; min-height: 130px; }

  .contact-field input:focus,
  .contact-field select:focus,
  .contact-field textarea:focus {
    outline: none;
    border-color: var(--mint-green);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
  }

  /* Invalid styling is gated on .validated so the fields are not painted red
     before the visitor has had a chance to type anything. */
  .contact-box.validated .contact-field :invalid {
    border-color: var(--retro-pink);
  }

  .contact-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
  }

  .contact-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .contact-submit {
    background: linear-gradient(135deg, var(--retro-pink), var(--mint-green));
    color: #030307;
    border: 0;
    border-radius: 24px;
    padding: 13px 32px;
    font-family: var(--goldman);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
  }

  .contact-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.1); }
  .contact-submit:disabled { opacity: 0.55; cursor: not-allowed; }

  .contact-status {
    margin: 14px 0 0;
    font-size: 0.9rem;
    min-height: 1.2em;
  }

  .contact-status.ok { color: var(--mint-green); }
  .contact-status.err { color: var(--retro-pink); }

  @media (prefers-reduced-motion: reduce) {
    .contact-field input,
    .contact-field select,
    .contact-field textarea,
    .contact-submit { transition: none; }
    .contact-submit:hover:not(:disabled) { transform: none; }
  }

  .section-label {
    font-family: var(--goldman);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--retro-pink);
    margin-bottom: 0.2em;
  }
  .meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
  }
  .block {
    margin-top: 1.5em;
  }
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.2em 0 1.6em;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
  }
  th, td {
    border: 1px solid var(--glass-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
  }
  th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--mint-green);
    font-family: var(--goldman);
  }
  td {
    color: var(--text-secondary);
  }
  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--electric-lime);
  }
  a {
    color: var(--mint-green);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
  }
  a:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
  .back-btn {
    display: inline-block;
    margin-bottom: 24px;
    font-family: var(--goldman);
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
  }
  .back-btn:hover {
    border-color: var(--mint-green);
    box-shadow: var(--shadow-green);
    background: rgba(0, 245, 212, 0.05);
  }
  blockquote {
    margin: 1.5em 0;
    padding: 16px;
    background: rgba(255, 46, 147, 0.05);
    border-left: 4px solid var(--retro-pink);
    border-radius: 0 8px 8px 0;
  }
  blockquote p {
    color: var(--text-primary);
    margin: 0 0 0.5em 0;
  }
  blockquote p:last-child {
    margin-bottom: 0;
  }
