:root {
  color-scheme: dark;
  --background: #080808;
  --surface: #11100e;
  --surface-soft: rgba(39, 35, 27, 0.94);
  --gold: #e7a919;
  --gold-light: #ffd36a;
  --gold-dark: #956405;
  --text: #fffaf0;
  --muted: #c9c1b2;
  --border: rgba(231, 169, 25, 0.28);
  --focus: #ffe294;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(231, 169, 25, 0.18), transparent 36rem),
    radial-gradient(circle at 10% 90%, rgba(149, 100, 5, 0.08), transparent 28rem),
    linear-gradient(155deg, #050505 0%, #0b0a08 52%, #070707 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.link-page {
  width: min(100% - 32px, 640px);
  margin: auto;
  padding: clamp(48px, 9vh, 88px) 0 40px;
}

.profile {
  text-align: center;
}

.logo-frame {
  width: clamp(120px, 30vw, 154px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 106, 0.66);
  border-radius: 50%;
  background: #050505;
  box-shadow:
    0 0 0 7px rgba(231, 169, 25, 0.06),
    0 16px 46px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(231, 169, 25, 0.12);
}

.profile-logo {
  width: 92%;
  height: 92%;
  display: block;
  object-fit: contain;
}

.profile h1,
.legal-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.profile h1 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
}

.profile h1::after {
  content: "";
  width: 54px;
  height: 2px;
  margin: 18px auto 0;
  display: block;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.intro {
  max-width: 440px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
}

.link-list {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

.link-button {
  min-height: 64px;
  padding: 15px 20px 15px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(231, 169, 25, 0.44);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(231, 169, 25, 0.14), transparent 48%),
    var(--surface-soft);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.link-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 211, 106, 0.72);
  background-color: rgba(52, 45, 31, 0.98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 26px rgba(231, 169, 25, 0.08);
}

.link-button:active {
  transform: translateY(0);
}

.link-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 169, 25, 0.32);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 400;
}

.site-footer {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 8px 0 28px;
  color: #928b80;
  font-size: 0.8rem;
  text-align: center;
}

.site-footer p {
  margin: 10px 0 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}

.legal-links a {
  color: #b9b1a4;
  text-decoration-color: rgba(231, 169, 25, 0.36);
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.legal-links a:hover {
  color: var(--gold-light);
}

.legal-page {
  width: min(100% - 28px, 850px);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) 0 32px;
}

.legal-card {
  padding: clamp(24px, 6vw, 58px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 14, 12, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-header {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(231, 169, 25, 0.2);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-header h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
}

.updated-at {
  margin: 12px 0 0;
  color: #9f978b;
  font-size: 0.88rem;
}

.legal-card section {
  margin-top: 32px;
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #f4d387;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 4vw, 1.38rem);
  font-weight: 600;
  line-height: 1.35;
}

.legal-card p,
.legal-card li {
  color: #d1cabf;
}

.legal-card p {
  margin: 0 0 14px;
}

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

.legal-card ul {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.legal-card li {
  margin: 7px 0;
  padding-left: 4px;
}

.legal-card li::marker {
  color: var(--gold);
}

.legal-footer {
  padding-top: 0;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.js-enabled.is-ready [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js-enabled.is-ready [data-reveal]:nth-of-type(2),
.js-enabled.is-ready footer[data-reveal] {
  transition-delay: 90ms;
}

@media (max-width: 480px) {
  .link-page {
    width: min(100% - 24px, 640px);
  }

  .link-button {
    min-height: 62px;
    padding-left: 18px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .legal-card {
    border-radius: 18px;
  }

  .legal-links {
    gap: 7px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
