/* Shared stylesheet for hYYa's public legal and compliance pages.
   Kept separate from /privacypolicy/styles.css because robots.txt disallows
   /privacypolicy/, which would stop crawlers fetching a stylesheet these pages
   need in order to render. Referenced with a ?v= stamp: .htaccess serves .css
   with max-age=31536000, immutable. */

:root {
  --violet: #675be6;
  --amber: #fc7f03;
  --ink: #1f1d41;
  --muted: #4f4b74;
  --glass: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  background: linear-gradient(125deg, #fff3e6, #eeedfc, #ffffff, #fff3e6);
  background-size: 280% 280%;
  animation: aurora 16s ease infinite;
}

@keyframes aurora {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.page {
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 24px;
}

.sitenav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sitenav .wordmark {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #2c275f;
  text-decoration: none;
}

.sitenav .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5143da;
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid rgba(103, 91, 230, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.hero,
.policy {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
}

.hero {
  padding: 26px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-bottom: 12px;
  text-align: center;
  font-size: clamp(1.65rem, 2.55vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #2c275f;
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(240px, 72%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 91, 230, 0.9), rgba(252, 127, 3, 0.9));
}

.hero p {
  margin: 10px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
}

.chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(103, 91, 230, 0.22);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.chip strong {
  color: var(--violet);
}

.policy {
  margin-top: 14px;
  padding: clamp(18px, 2.6vw, 38px);
}

h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
}

h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #3f3a67;
  font-size: 0.99rem;
}

p,
li {
  line-height: 1.67;
}

ul,
ol {
  margin-top: 8px;
  margin-bottom: 14px;
  padding-left: 22px;
}

a {
  color: var(--violet);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #5143da;
  text-decoration: underline;
  text-decoration-color: rgba(81, 67, 218, 0.65);
}

a:focus,
a:focus-visible {
  color: #4a3ec9;
  text-decoration: underline;
  text-decoration-color: rgba(74, 62, 201, 0.8);
  outline: 2px solid rgba(252, 127, 3, 0.85);
  outline-offset: 2px;
  border-radius: 2px;
}

.last-updated {
  margin-top: 0;
  color: #5f5b83;
  font-style: italic;
}

.notice {
  margin: 14px 0;
  border-left: 4px solid var(--amber);
  padding: 10px 12px;
  background: rgba(252, 127, 3, 0.08);
  border-radius: 8px;
}

/* Wide content must scroll inside its own box rather than the page body. */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(103, 91, 230, 0.16);
}

th {
  color: #3f3a67;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid rgba(103, 91, 230, 0.28);
}

tbody tr:last-child td {
  border-bottom: none;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  margin-bottom: 8px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(103, 91, 230, 0.14);
  border: 1px solid rgba(103, 91, 230, 0.28);
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .page {
    width: min(980px, calc(100% - 16px));
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .hero,
  .policy {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    background-position: 50% 50%;
  }
}
