:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #151719;
  --muted: #62666c;
  --line: #e1e3e6;
  --nav: #ffffffed;
  --nav-border: #e5e7eb;
  --nav-highlight: #ffffff;
  --control: #f5f6f8;
  --button: #202126;
  --button-ink: #fff;
  --link: #2169ca;
  --hover: #f0f1f3;
  --shadow: 0 16px 48px #18202c0a;
  --starlight-opacity: .45;
  --nav-starlight-opacity: .42;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #101113;
  --ink: #f2f3f4;
  --muted: #b0b3bb;
  --line: #303237;
  --nav: #1a1c20ed;
  --nav-border: #ffffff14;
  --nav-highlight: #ffffff04;
  --control: #ffffff04;
  --button: #f0f0f3;
  --button-ink: #1b1c20;
  --link: #8dbaff;
  --hover: #25282e;
  --shadow: 0 16px 48px #0003;
  --starlight-opacity: .65;
  --nav-starlight-opacity: .6;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { isolation: isolate; margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
/* A quiet version of Home's violet pixel constellations, clear of the reading column. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('starlight.svg') center top / max(100%, 1100px) auto no-repeat; opacity: var(--starlight-opacity); mask-image: radial-gradient(ellipse 48% 70% at 50% 60%, transparent 45%, #000 95%); }
a { color: inherit; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.skip-link { position: absolute; left: 24px; top: -80px; z-index: 3; padding: 12px; background: var(--nav); }
.skip-link:focus { top: 20px; }
.legal-header { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1120px, calc(100% - 48px)); min-height: 72px; margin: 24px auto 0; padding: 12px 18px; border: 1px solid var(--nav-border); border-radius: 22px; background: linear-gradient(120deg, var(--nav-highlight), transparent 55%), var(--nav); box-shadow: 0 8px 32px #00000006, inset 0 1px 0 var(--nav-highlight); }
.legal-header::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: url('starlight.svg') center 12% / 100% auto no-repeat; opacity: var(--nav-starlight-opacity); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 35%, transparent 46%, transparent 54%, #000 65%, #000 86%, transparent); }
.legal-menu { justify-self: start; }
.legal-menu summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--nav-border); border-radius: 13px; background: var(--control); color: var(--muted); cursor: pointer; list-style: none; }
.legal-menu summary::-webkit-details-marker { display: none; }
.legal-menu summary:hover, .legal-menu[open] summary { background: var(--hover); color: var(--ink); border-color: var(--line); }
.legal-menu svg { width: 22px; height: 22px; }
.menu-links { position: absolute; z-index: 2; top: calc(100% + 12px); left: 0; display: grid; gap: 4px; width: min(360px, 100%); padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--nav); box-shadow: var(--shadow); }
.menu-links a { padding: 14px 16px; border-radius: 10px; text-decoration: none; font-size: 15px; line-height: 1.4; }
.menu-links a:hover, .menu-links a[aria-current='page'] { background: var(--hover); }
.legal-brand { display: flex; align-items: center; justify-self: center; padding: 4px 0; border-radius: 8px; text-decoration: none; }
.tmax-logo { display: flex; align-items: center; gap: 10px; font-size: 28px; line-height: 1; letter-spacing: -1.1px; font-weight: 500; }
.tmax-logo img { width: 46px; height: 30px; object-fit: contain; filter: brightness(.35); }
[data-theme='dark'] .tmax-logo img { filter: none; }
.tmax-logo b { font-weight: 650; }
.musube-logo { display: none; align-items: center; gap: 9px; }
.brand-art { display: block; position: relative; overflow: hidden; flex-shrink: 0; mix-blend-mode: multiply; }
[data-theme='dark'] .brand-art { mix-blend-mode: screen; }
.brand-art img { position: absolute; max-width: none; filter: contrast(1.15); }
.brand-mark { width: 39.4px; height: 30px; }
.brand-lettering { width: 87.1px; height: 20px; }
.brand-mark img { width: 212.54%; left: -56.10%; top: -59.24%; }
.brand-lettering img { width: 116.11%; left: -8.15%; top: -300.81%; }
.brand-dark { display: none; }
[data-theme='dark'] .brand-light { display: none; }
[data-theme='dark'] .brand-dark { display: block; }
[data-theme='dark'] .brand-mark { width: 38.87px; }
[data-theme='dark'] .brand-lettering { width: 90.52px; }
[data-theme='dark'] .brand-mark img { width: 227.17%; left: -63.59%; top: -64.79%; }
[data-theme='dark'] .brand-lettering img { width: 119.43%; left: -9.90%; top: -316.81%; }
[data-brand='musube'] .tmax-logo { display: none; }
[data-brand='musube'] .musube-logo { display: flex; }
.legal-login { display: inline-flex; justify-self: end; align-items: center; justify-content: center; gap: 14px; min-height: 42px; padding: 10px 18px; border: 1px solid transparent; border-radius: 13px; background: var(--button); color: var(--button-ink); box-shadow: 0 2px 4px #0000000a; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.legal-login:hover { opacity: .88; }
.legal-login svg { width: 17px; height: 17px; flex-shrink: 0; }
.legal-main { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 80px; }
.legal-eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; }
.legal-title { max-width: 22ch; margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.legal-updated { margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.document-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 38px 0 44px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.document-links a { color: var(--muted); font-size: 14px; line-height: 1.6; text-decoration: none; }
.document-links a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.document-links a:hover { color: var(--ink); }
.legal-content { color: var(--muted); font-size: 18px; line-height: 1.85; overflow-wrap: break-word; }
.legal-content p { margin: 0 0 26px; }
.legal-content h2 { margin: 54px 0 20px; color: var(--ink); font-size: 27px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content ul, .legal-content ol { margin: 0 0 28px; padding-left: 26px; }
.legal-content li { padding-left: 6px; margin-bottom: 12px; }
.legal-content li::marker { color: var(--muted); }
.legal-content a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; max-width: 1160px; margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.legal-footer nav { display: flex; gap: 24px; }
.legal-footer-copy { flex: 1 1 640px; min-width: 0; }
.legal-copyright { margin: 0; }
.legal-disclaimer { max-width: 100ch; margin: 12px 0 0; line-height: 1.75; }
.legal-footer a { text-underline-offset: 4px; }
@media (max-width: 1220px) {
  .legal-footer { margin-inline: 24px; }
}
@media (max-width: 600px) {
  .legal-header { width: calc(100% - 24px); min-height: 68px; padding: 12px; margin: 16px auto 0; border-radius: 20px; }
  body::before { background-size: 800px auto; background-position: 42% top; opacity: calc(var(--starlight-opacity) * .65); }
  .legal-login { padding: 9px 12px; gap: 10px; font-size: 13px; min-height: 40px; border-radius: 12px; }
  .legal-login svg { width: 16px; }
  .tmax-logo { font-size: 25px; gap: 8px; }
  .tmax-logo img { width: 40px; height: 28px; }
  .musube-logo { transform: scale(.9); transform-origin: center; margin-inline: -7px; }
  .legal-main { width: calc(100% - 40px); padding: 68px 0 56px; }
  .legal-title { font-size: clamp(36px, 8vw, 48px); line-height: 1.12; }
  .legal-eyebrow { font-size: 12px; margin-bottom: 22px; }
  .legal-updated { font-size: 16px; margin-top: 24px; }
  .document-links { gap: 14px 24px; margin: 30px 0 34px; }
  .legal-content { font-size: 17px; line-height: 1.8; }
  .legal-content h2 { font-size: 24px; margin-top: 42px; }
  .legal-footer { margin-inline: 20px; }
}
@media (max-width: 360px) {
  .legal-header { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .legal-menu summary { width: 36px; height: 40px; border-radius: 11px; }
  .legal-brand { justify-self: center; }
  .tmax-logo { font-size: 23px; gap: 5px; }
  .tmax-logo img { width: 32px; height: 28px; }
  .musube-logo { transform: scale(.8); margin-inline: -14px; }
  .legal-login { font-size: 12px; padding: 9px 10px; }
  .legal-login svg { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .legal-menu summary { transition: background-color 160ms, border-color 160ms, color 160ms; }
  .legal-login { transition: opacity 160ms; }
}
@page { size: A4; margin: 20mm 18mm; }
@media print {
  :root, :root[data-theme='dark'] { --paper: #fff; --ink: #111; --muted: #333; --line: #ddd; --link: #111; color-scheme: light; }
  body::before, .legal-header, .document-links, .skip-link, .legal-footer nav { display: none; }
  .legal-footer { margin: 24px 0 0; padding: 16px 0 0; font-size: 9pt; break-inside: avoid; }
  .legal-main { width: 100%; margin: 0; padding: 0; }
  .legal-eyebrow { margin-bottom: 12px; font-size: 9pt; }
  .legal-title { max-width: none; font-size: 28pt; }
  .legal-updated { margin: 14px 0 28px; font-size: 10pt; }
  .legal-content { margin-top: 28px; font-size: 10.5pt; line-height: 1.65; }
  .legal-content h2 { break-after: avoid; font-size: 15pt; margin: 24px 0 12px; }
  .legal-content p, .legal-content li { orphans: 3; widows: 3; }
  .legal-content p { margin-bottom: 12px; }
  .legal-content li { margin-bottom: 6px; }
}
