:root {
  --rm-bg: #000;
  --rm-blue: #0549ff;
  --rm-blue-hover: #1a5cff;
  --rm-text: #ffffff;
  --rm-text-muted: #a8a8a8;
  --rm-text-dim: #8a8a8a;
  --rm-border: rgba(255, 255, 255, 0.08);
  --rm-font-display: "Baloo Bhai 2", system-ui, sans-serif;
  --rm-font-body: "Inter Tight", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--rm-bg);
  color: var(--rm-text);
  font-family: var(--rm-font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.rm-legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  border-bottom: 1px solid var(--rm-border);
}

.rm-legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 24px;
}

.rm-legal-header__logo {
  display: block;
  line-height: 0;
}

.rm-legal-header__logo img {
  display: block;
  height: clamp(28px, 4.5vw, 36px);
  width: auto;
}

.rm-legal-main {
  flex: 1 0 auto;
  width: min(100% - 40px, 40rem);
  margin: 40px auto 72px;
}

.rm-legal-article h1 {
  margin: 0 0 12px;
  font-family: var(--rm-font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.rm-legal-updated {
  margin: 0 0 36px;
  color: var(--rm-text-dim);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rm-legal-article h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.rm-legal-article h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.rm-legal-article p,
.rm-legal-article li {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.rm-legal-article ul,
.rm-legal-article ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.rm-legal-article li {
  margin-bottom: 0.45rem;
}

.rm-legal-article a {
  color: #9dc0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rm-legal-article a:hover {
  color: #fff;
}

.rm-legal-lead {
  font-size: 1.05rem;
  color: var(--rm-text-muted);
}

.rm-legal-dl {
  margin: 0 0 1.25rem;
}

.rm-legal-dl dt {
  margin: 0.85rem 0 0.2rem;
  font-weight: 650;
  line-height: 1.4;
}

.rm-legal-dl dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.rm-legal-en {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rm-border);
}

.rm-contact {
  text-align: center;
}

.rm-contact h1 {
  margin-bottom: 8px;
}

.rm-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  text-align: left;
}

.rm-contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rm-text-muted);
}

.rm-contact-form input,
.rm-contact-form textarea {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rm-border);
  border-radius: 14px;
  background: #141820;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.rm-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.rm-contact-form input:focus,
.rm-contact-form textarea:focus {
  outline: 2px solid var(--rm-blue);
  outline-offset: 2px;
}

.rm-contact-form button {
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--rm-blue);
  color: #fff;
  font-family: var(--rm-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.rm-contact-form button:hover {
  background: var(--rm-blue-hover);
}

.rm-contact-fallback {
  margin-top: 20px;
  color: var(--rm-text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rm-footer {
  flex-shrink: 0;
  padding: 36px 24px 48px;
  background: #000;
  border-top: 1px solid var(--rm-border);
}

.rm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  max-width: 720px;
  margin: 0 auto;
}

.rm-footer__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.rm-footer__links a:hover,
.rm-footer__links a[aria-current="page"] {
  color: #fff;
}

@media (max-width: 640px) {
  .rm-legal-main {
    width: min(100% - 32px, 40rem);
    margin: 28px auto 56px;
  }

  .rm-footer {
    padding: 28px 16px 40px;
  }

  .rm-footer__links {
    gap: 10px 16px;
  }
}
