/* ═══════════════════════════════════════════════════════════════════
   Dawemly — Legal Pages Stylesheet
   Clean corporate / App-Store-generator aesthetic: Arial sans-serif,
   white paper with soft shadow, teal links, dark footer.
   ═══════════════════════════════════════════════════════════════════ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "pnum";
    font-feature-settings: "pnum";
    font-variant-numeric: proportional-nums;
    position: relative;
    background: #f3f3f3;
    color: #222;
    font-size: 16px;
    line-height: 1.65;
}

.container {
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container { width: 738px; padding-right: 15px; padding-left: 15px; }
}
@media (min-width: 992px) {
    .container { width: 962px; }
}
@media (min-width: 1200px) {
    .container { width: 1170px; }
}

/* The "sheet of paper" card */
.main-container {
    color: #222;
    text-align: left;
    padding: 2em;
    padding-top: 1.5em;
    background: #fff;
    min-height: 400px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, .25);
}
.main-container * {
    text-align: left;
}

/* Masthead */
.masthead {
    padding: 28px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}
.masthead .brand-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.masthead .brand-ar {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin: 0;
}
.masthead .brand-en {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.masthead .updated {
    margin-top: 6px;
    font-size: 13px;
    color: #888;
}

/* Headings */
h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0 8px;
    color: #222;
}
h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 32px 0 12px;
    color: #222;
}
@media only screen and (max-width: 600px) {
    h1 { font-size: 1.6em; }
    h2 { font-size: 1.2em; }
}
h3 {
    font-size: 1.05em;
    font-weight: bold;
    margin: 22px 0 8px;
    color: #222;
}

/* Paragraphs + lists */
p {
    margin: 1rem 0;
}
ul, ol {
    margin: 1rem 0;
    padding-left: 28px;
}
li {
    margin-bottom: 6px;
}

/* Links */
a {
    color: #009c9c;
    text-decoration: none;
}
a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Horizontal rule between sections / languages */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Language-specific direction (Arabic section is RTL internally) */
section[dir="rtl"],
section[dir="rtl"] * {
    text-align: right !important;
    direction: rtl;
}
section[dir="rtl"] ul,
section[dir="rtl"] ol {
    padding-left: 0;
    padding-right: 28px;
}
section[dir="rtl"] h1,
section[dir="rtl"] h2,
section[dir="rtl"] h3 {
    text-align: right !important;
}

/* Subtitle under doc title */
.doc-subtitle {
    color: #666;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 0.95em;
}

/* Dark footer */
footer {
    background: #222;
    padding: 24px 15px;
    font-size: 0.9em;
    margin-top: 60px;
    text-align: center !important;
}
footer p {
    color: #666 !important;
    margin: 6px 0;
}
footer a {
    color: #888 !important;
    text-decoration: none;
    margin: 0 8px;
}
footer a:hover {
    color: #fff !important;
    text-decoration: none;
}
