/* PackLight Legal Pages — minimal, readable, professional */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-soft: #4a4a4a;
  --color-text-muted: #707070;
  --color-accent: #0F766E;
  --color-accent-soft: #e6f2f1;
  --color-border: #e5e5e5;
  --max-width: 760px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

/* HEADER */
header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.logo-link .logo-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.95rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--color-surface);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.lang-switch button {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 5px;
  font-family: inherit;
  transition: all 0.15s ease;
}
.lang-switch button.active {
  background: var(--color-accent);
  color: white;
}
.lang-switch button:not(.active):hover { color: var(--color-text); }

/* TYPOGRAPHY */
h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  line-height: 1.2;
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  scroll-margin-top: 2rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-soft);
}

ul, ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--color-text-soft);
}

li { margin-bottom: 0.4rem; }

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--color-accent); }

strong { color: var(--color-text); font-weight: 600; }

code {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.88em;
}

/* TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table th {
  font-weight: 600;
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--color-text-muted); }
footer a:hover { color: var(--color-accent); }

/* INDEX SPECIFIC */
.docs-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.doc-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
}
.doc-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.08);
}
.doc-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--color-text);
}
.doc-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.doc-card .arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 600px) {
  .container { padding: 2rem 0 3rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}

/* Language visibility - only hide language divs inside main */
main > div[lang]:not(.active) { display: none; }
