@font-face {
  font-family: "Archia";
  src: url("assets/fonts/Archia-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Body Grotesque Fit";
  src: url("assets/fonts/Body-Grotesque-Fit-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #f47b3e;
  --secondary: #92469b;
  --poderosa: #ff1fad;
  --header: #91459a;
  --text: #413243;
  --muted: #f5f5f5;
  --border: #ededed;
  --error: #df1616;
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: "Archia", "Body Grotesque Fit", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: #ffffff;
}

[hidden] {
  display: none !important;
}

.site-header {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--header);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 24px;
  width: auto;
}

.upload-button {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.upload-button:hover {
  opacity: 0.8;
}

.upload-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.error {
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  color: var(--error);
  background: #fdf0f0;
  font-size: 14px;
  line-height: 20px;
}

.empty-state {
  max-width: 560px;
  margin: 64px auto 0;
  padding: 48px 40px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  margin-top: 64px;
  color: var(--secondary);
}

.loading-text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #ead5ec;
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}

.empty-title {
  margin: 0 0 12px;
  font-family: "Archia", var(--font-sans);
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: var(--secondary);
}

.empty-text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

.terms-content {
  font-size: 16px;
  line-height: 26px;
  color: var(--text);
}

.terms-content h1,
.terms-content h2,
.terms-content h3,
.terms-content h4 {
  font-family: "Archia", var(--font-sans);
  color: var(--secondary);
  line-height: 1.25;
  margin: 32px 0 12px;
}

.terms-content h1 {
  font-size: 32px;
  margin-top: 0;
}

.terms-content h2 {
  font-size: 24px;
}

.terms-content h3 {
  font-size: 20px;
}

.terms-content p,
.terms-content ul,
.terms-content ol,
.terms-content blockquote,
.terms-content pre,
.terms-content table {
  margin: 0 0 16px;
}

.terms-content a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-content a:hover {
  color: var(--primary);
}

.terms-content ul,
.terms-content ol {
  padding-left: 24px;
}

.terms-content li {
  margin-bottom: 6px;
}

.terms-content strong {
  font-weight: 600;
}

.terms-content blockquote {
  padding: 8px 16px;
  border-left: 4px solid var(--secondary);
  background: var(--muted);
  color: var(--text);
}

.terms-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--muted);
  border-radius: 4px;
  padding: 2px 6px;
}

.terms-content pre {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}

.terms-content pre code {
  background: transparent;
  padding: 0;
}

.terms-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.terms-content th,
.terms-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.terms-content th {
  background: var(--muted);
  font-weight: 600;
}

.terms-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 16px;
  }

  .brand img {
    height: 22px;
  }

  .page {
    padding: 32px 16px 64px;
  }

  .empty-state {
    margin-top: 32px;
    padding: 32px 20px;
  }

  .empty-title {
    font-size: 24px;
    line-height: 32px;
  }

  .terms-content h1 {
    font-size: 28px;
  }
}

.terms-content a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

