/* MUSIXQUARE legal pages: Privacy and Terms. */

:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #2a2a2a;
  --text-main: #ffffff;
  --text-sub: #c9c9c9;
  --text-muted: #8f8f8f;
  --accent: #ffd400;
  --max-w: 880px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: Pretendard, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.policy-header {
  height: 70px;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.policy-logo {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
}

.policy-wordmark {
  display: block;
  width: 132px;
  height: 18px;
  background: currentColor;
  mask: url("/designsystem/assets/logo-wordmark.svg") center / contain no-repeat;
  -webkit-mask: url("/designsystem/assets/logo-wordmark.svg") center / contain no-repeat;
}

.policy-home {
  color: var(--text-sub);
  font-size: 13px;
  text-decoration: none;
}

.policy-home:hover {
  color: var(--text-main);
}

.policy-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 86px var(--pad-x) 120px;
}

.policy-hero {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--surface-2);
}

.policy-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.policy-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.policy-hero p {
  max-width: 680px;
}

.policy-hero p:not(.policy-kicker) {
  margin: 24px 0 0;
  color: var(--text-sub);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.policy-hero .policy-date {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.policy-doc {
  padding-top: 64px;
}

.policy-doc section + section {
  margin-top: 64px;
}

.policy-doc h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
}

.policy-doc p,
.policy-doc dd {
  color: var(--text-sub);
  font-size: 15px;
}

.policy-doc p {
  margin: 0;
}

.policy-doc p + p {
  margin-top: 12px;
}

.policy-doc dl {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

.policy-doc dl > div {
  padding-top: 18px;
  border-top: 1px solid var(--surface-2);
}

.policy-doc dt {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
}

.policy-doc dd {
  margin: 0;
}

.policy-doc a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-footer {
  padding: 30px var(--pad-x);
  border-top: 1px solid var(--surface-2);
}

.policy-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}

.policy-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.policy-footer a,
.policy-footer button {
  color: var(--text-sub);
  font: inherit;
  text-decoration: none;
}

.policy-footer button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.policy-footer a:hover,
.policy-footer button:hover,
.policy-footer button.is-active {
  color: var(--text-main);
}

.policy-footer button.is-active {
  font-weight: 700;
}

:lang(ko) .policy-hero h1,
:lang(ko) .policy-doc h2,
:lang(ko) .policy-doc p,
:lang(ko) .policy-doc dd {
  word-break: keep-all;
}

@media (max-width: 640px) {
  .policy-header {
    height: 64px;
  }

  .policy-shell {
    padding-top: 64px;
    padding-bottom: 84px;
  }

  .policy-doc {
    padding-top: 46px;
  }

  .policy-doc section + section {
    margin-top: 46px;
  }
}
