/* Markplain — Legal Document Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f2937;
    line-height: 1.65;
    background: #fafafa;
    font-size: 16px;
}
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
}
.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}
.lang-switch {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 12px;
}
.lang-switch a {
    text-decoration: none;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.15s;
    font-weight: 500;
}
.lang-switch a:hover { background: #f3f4f6; color: #111827; }
.lang-switch a.active { background: #E11D48; color: #fff; }

/* Main content */
main { padding: 48px 0 80px; }
.breadcrumbs {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 16px;
}
.breadcrumbs a { color: #6b7280; text-decoration: none; }
.breadcrumbs a:hover { color: #E11D48; }

h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.25;
}
.meta {
    color: #6b7280;
    font-size: 13px;
    padding-bottom: 20px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}
h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 14px;
}
h3 {
    font-size: 17px;
    font-weight: 600;
    color: #0d9488;
    margin: 24px 0 10px;
}
p { margin-bottom: 12px; color: #374151; }
ul, ol { margin: 8px 0 16px 22px; }
li { margin-bottom: 6px; color: #374151; }
a { color: #E11D48; }
strong { color: #111827; font-weight: 600; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
    width: 32%;
}
tr:last-child th, tr:last-child td { border-bottom: 0; }

.notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 14px 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #78350f;
}
.notice strong { color: #78350f; }

.callout {
    background: #f0fdfa;
    border-left: 4px solid #0d9488;
    padding: 14px 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-style: italic;
    color: #115e59;
}

/* Index page */
.docs-grid { display: grid; gap: 12px; margin-top: 24px; }
.doc-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.doc-card:hover {
    border-color: #E11D48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
    transform: translateY(-1px);
}
.doc-card .title { font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.doc-card .desc { font-size: 13px; color: #6b7280; }
.doc-card .arrow { color: #d1d5db; font-size: 20px; transition: color 0.2s; }
.doc-card:hover .arrow, .doc-card:hover .title { color: #E11D48; }

/* Footer */
footer.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
footer.site-footer p { margin-bottom: 4px; color: #9ca3af; }
footer.site-footer a { color: #E11D48; text-decoration: none; }

@media (max-width: 600px) {
    h1 { font-size: 26px; }
    h2 { font-size: 19px; }
    table { font-size: 13px; }
    th, td { padding: 8px 10px; }
    th { width: auto; }
}
